{"id":5766,"date":"2011-06-18T12:20:33","date_gmt":"2011-06-18T03:20:33","guid":{"rendered":"http:\/\/fukata.org\/?p=5766"},"modified":"2017-08-11T22:58:49","modified_gmt":"2017-08-11T22:58:49","slug":"git-tips-mistake-working-master-branch","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/5766\/","title":{"rendered":"[Git]\u8aa4\u3063\u3066master\u4e0a\u3067\u4f5c\u696d\u3057\u3066\u3044\u305f\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"

\u666e\u6bb5\u304b\u3089svn\u3067\u306f\u306a\u304fgit\u3092\u4f7f\u3046\u4e8b\u304c\u591a\u304f\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u65b0\u6a5f\u80fd\u958b\u767a\u3092\u884c\u3046\u5834\u5408\u306b\u3082branch\u3092\u4f5c\u308b\u306e\u3092\u5fd8\u308c\u3066master\u30d6\u30e9\u30f3\u30c1\u4e0a\u3067\u4f5c\u696d\u3057\u3066\u3044\u305f\u308a\u3001\u4f5c\u696d\u5bfe\u8c61\u306ebranch\u4e0a\u306b\u5c45\u308b\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u306b\u5b9f\u306fmaster\u30d6\u30e9\u30f3\u30c1\u4e0a\u3060\u3063\u305f\u308a\u3068\u3044\u3046\u4e8b\u304c\u305f\u307e\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u8aa4\u3063\u3066master\u3082\u3057\u304f\u306f\u5225\u30d6\u30e9\u30f3\u30c1\u4e0a\u3067\u4f5c\u696d\u3057\u3066\u3044\u305f\u6642\u306e\u5bfe\u51e6\u6cd5\u3092\u30e1\u30e2\u4ee3\u308f\u308a\u306b\u66f8\u3044\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

<\/p>\n

\u30d6\u30e9\u30f3\u30c1\u3092\u65b0\u305f\u306b\u4f5c\u6210\u3059\u308b\u4e88\u5b9a\u3060\u3063\u305f\u5834\u5408<\/h2>\n
\r\ngit stash save 'mistake working branch'\r\ngit stash branch [\u30d6\u30e9\u30f3\u30c1\u540d]\r\n<\/pre>\n

\u65e2\u5b58\u30d6\u30e9\u30f3\u30c1\u3067\u4f5c\u696d\u3059\u308b\u4e88\u5b9a\u3060\u3063\u305f\u5834\u5408<\/h2>\n
\r\ngit stash save 'mistake working branch'\r\ngit checkout [\u30d6\u30e9\u30f3\u30c1\u540d]\r\ngit stash pop\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u666e\u6bb5\u304b\u3089svn\u3067\u306f\u306a\u304fgit\u3092\u4f7f\u3046\u4e8b\u304c\u591a\u304f\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u65b0\u6a5f\u80fd\u958b\u767a\u3092\u884c\u3046\u5834\u5408\u306b\u3082branch\u3092\u4f5c\u308b\u306e\u3092\u5fd8\u308c\u3066master\u30d6\u30e9\u30f3\u30c1\u4e0a\u3067\u4f5c\u696d\u3057\u3066\u3044\u305f\u308a\u3001\u4f5c\u696d\u5bfe\u8c61\u306ebranch\u4e0a\u306b\u5c45\u308b\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u306b … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[874],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/5766"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=5766"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/5766\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=5766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=5766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=5766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}