{"id":1178,"date":"2016-11-30T16:26:28","date_gmt":"2016-11-30T07:26:28","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1178"},"modified":"2020-11-26T15:51:01","modified_gmt":"2020-11-26T06:51:01","slug":"git%e3%81%a7branch%e5%89%8a%e9%99%a4%e3%81%82%e3%82%8c%e3%81%93%e3%82%8c","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1178","title":{"rendered":"[git] branch\u306e\u524a\u9664\u65b9\u6cd5"},"content":{"rendered":"<h3>\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b<\/h3>\n<h4>\u30ed\u30fc\u30ab\u30eb\u30fb\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b\uff08\u672b\u7aef\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664\u306f\u5931\u6557\u3059\u308b\uff09<\/h4>\n<pre class=\"lang:sh decode:true \" >$ git branch -d foo_branch<\/pre>\n<p><!--more--><\/p>\n<h4>\u30ed\u30fc\u30ab\u30eb\u30fb\u30d6\u30e9\u30f3\u30c1\u3092\u300e\u5f37\u5236\u300f\u524a\u9664\u3059\u308b\uff08merge\u3055\u308c\u305f\u30d6\u30e9\u30f3\u30c1\u304b\u5426\u304b\u3092\u554f\u308f\u306a\u3044\uff09<\/h4>\n<pre class=\"lang:sh decode:true \" >$ git branch -D foo_branch<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u30ea\u30e2\u30fc\u30c8\u30fb\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b<\/h3>\n<pre class=\"lang:sh decode:true \" >$ git push origin :foo_branch<\/pre>\n<h4>\u89e3\u8aac<\/h4>\n<pre class=\"lang:sh decode:true \" >$ git push <push\u5148\u30ea\u30dd\u30b8\u30c8\u30ea> <\u30ed\u30fc\u30ab\u30eb\u306e\u30d6\u30e9\u30f3\u30c1\u540d>:<\u30ea\u30e2\u30fc\u30c8\u306e\u30d6\u30e9\u30f3\u30c1\u540d><\/pre>\n<p>\u30ed\u30fc\u30ab\u30eb\u306e\u30d6\u30e9\u30f3\u30c1\u540d\u3092\u7701\u7565\u3059\u308b\uff08\u7a7a\u3092\u6307\u5b9a\u3059\u308b\uff09\u3053\u3068\u3067\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u7d50\u679c\u3068\u3057\u3066\u524a\u9664\u3055\u308c\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30ea\u30e2\u30fc\u30c8\u3067\u524a\u9664\u3055\u308c\u305f\u30d6\u30e9\u30f3\u30c1\u3092\u30ed\u30fc\u30ab\u30eb\u304b\u3089\u3082\u524a\u9664\u3059\u308b<\/h2>\n<pre class=\"lang:sh decode:true \" >$ git fetch -p<\/pre>\n<pre class=\"lang:sh decode:true \" >$ git fetch --prune<\/pre>\n<p>\u660e\u793a\u7684\u306b <code>-p, --prune<\/code> \u3092\u6307\u5b9a\u3057\u306a\u3044\u3068fetch\u306f\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u5f15\u3063\u5f35\u308b\u3060\u3051\u3067\u524a\u9664\u306f\u3057\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b \u30ed\u30fc\u30ab\u30eb\u30fb\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b\uff08\u672b\u7aef\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664\u306f\u5931\u6557\u3059\u308b\uff09 $ git branch -d foo_branch<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"class_list":["post-1178","post","type-post","status-publish","format-standard","hentry","category-memo","tag-git"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1178"}],"version-history":[{"count":8,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1178\/revisions"}],"predecessor-version":[{"id":3808,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1178\/revisions\/3808"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}