{"id":4816,"date":"2020-01-03T19:05:01","date_gmt":"2020-01-03T10:05:01","guid":{"rendered":"https:\/\/yumishin.com\/?p=4816"},"modified":"2020-01-03T19:06:21","modified_gmt":"2020-01-03T10:06:21","slug":"%e3%80%90git%e3%80%91%e3%83%96%e3%83%a9%e3%83%b3%e3%83%81%e3%81%ae%e5%89%8a%e9%99%a4%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=4816","title":{"rendered":"\u3010Git\u3011\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>\u4eca\u56de\u306fGit\u306b\u304a\u3051\u308b\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u307e\u3068\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u305d\u308c\u307e\u3067\u306e\u958b\u767a\u3092\u7121\u304b\u3063\u305f\u4e8b\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 id=\"i-0\">\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664<\/h2>\n<h3 id=\"i-1\">\u30de\u30fc\u30b8\u6e08\u307f\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664<\/h3>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30de\u30f3\u30c9<\/span><\/p>\n<pre><code>$ git branch -d [\u30d6\u30e9\u30f3\u30c1\u540d]<\/code><\/pre>\n<\/div>\n<div class=\"memo alert\">\n<div class=\"memo_ttl dfont\"> \u6ce8\u610f<\/div>\n<p>\u30de\u30b9\u30bf\u30fc\u306b\u30de\u30fc\u30b8\u3057\u3066\u3044\u306a\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u3082\u3057\u30de\u30fc\u30b8\u3057\u3066\u3044\u306a\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u300c\u5f37\u5236\u7684\u306a\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664\u300d\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/div>\n<h3 id=\"i-2\">\u5f37\u5236\u7684\u306a\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664<\/h3>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30de\u30f3\u30c9<\/span><\/p>\n<pre><code>$ git branch -D [\u30d6\u30e9\u30f3\u30c1\u540d]<\/code><\/pre>\n<\/div>\n<div class=\"memo \">\n<div class=\"memo_ttl dfont\"> MEMO<\/div>\n<p>\u3069\u3093\u306a\u30d6\u30e9\u30f3\u30c1\u3082\u5f37\u5236\u7684\u306b\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/p><\/div>\n<h2 id=\"i-3\">\u30d6\u30e9\u30f3\u30c1\u524a\u9664\u306e\u969b\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408<\/h2>\n<h3 id=\"i-4\">error: Cannot delete the branch \u2018\u30d6\u30e9\u30f3\u30c1\u540d\u2019 which you are currently on.<\/h3>\n<div class=\"sng-box box3\">\n<p><strong>\u539f\u56e0<\/strong>\uff1a\u73fe\u5728\u306e\u30ab\u30ec\u30f3\u30c8\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u3002\uff08\u81ea\u5206\u304c\u4f5c\u696d\u3057\u3066\u3044\u308b\u30d6\u30e9\u30f3\u30c1\u5185\u304b\u3089\u3001\u81ea\u5206\u304c\u3044\u308b\u4f5c\u696d\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u3002\uff09<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u5bfe\u5fdc<\/strong>\uff1a\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u79fb\u52d5\u3057\u3066\u3001\u5bfe\u8c61\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b<\/p>\n<\/div>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30de\u30f3\u30c9<\/span><\/p>\n<pre><code>$ git checkout {\u524a\u9664\u5bfe\u8c61\u4ee5\u5916\u306e\u30d6\u30e9\u30f3\u30c1}\n$ git branch -d {\u524a\u9664\u5bfe\u8c61\u306e\u30d6\u30e9\u30f3\u30c1}\n<\/code><\/pre>\n<\/div>\n<h3 id=\"i-5\">error: The branch \u2018\u30d6\u30e9\u30f3\u30c1\u540d\u2019 is not fully merged. If you are sure you want to delete it, run \u2018git branch -D \u30d6\u30e9\u30f3\u30c1\u540d\u2019.<\/h3>\n<div class=\"sng-box box3\">\n<p><strong>\u539f\u56e0<\/strong>\uff1a\u30de\u30fc\u30b8\u3055\u308c\u3066\u3044\u306a\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b<\/p>\n<p><strong>\u5bfe\u5fdc<\/strong>\uff1a\u30de\u30fc\u30b8\u3057\u3066\u524a\u9664\u3059\u308b or \u5f37\u5236\u7684\u306b\u524a\u9664\u3059\u308b<\/p>\n<\/div>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30de\u30f3\u30c9<\/span><\/p>\n<pre><code>$ git branch -D [\u30d6\u30e9\u30f3\u30c1\u540d]<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fGit\u306b\u304a\u3051\u308b\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u307e\u3068\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u305d\u308c\u307e\u3067\u306e\u958b\u767a\u3092\u7121\u304b\u3063\u305f\u4e8b\u306b\u3067\u304d\u307e\u3059\u3002 \u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664 \u30de\u30fc\u30b8\u6e08\u307f\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664 \u5f37\u5236\u7684\u306a\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664 \u30d6\u30e9\u30f3 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4826,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272],"tags":[],"class_list":{"0":"post-4816","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-programing","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/4816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4816"}],"version-history":[{"count":3,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/4816\/revisions"}],"predecessor-version":[{"id":4825,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/4816\/revisions\/4825"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/4826"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}