{"id":2058,"date":"2017-04-15T13:28:54","date_gmt":"2017-04-15T05:28:54","guid":{"rendered":"http:\/\/www.qdabc.cn\/?p=2058"},"modified":"2017-04-15T13:28:54","modified_gmt":"2017-04-15T05:28:54","slug":"github%e5%88%a0%e9%99%a4%e9%bb%98%e8%ae%a4%e7%9a%84master%e5%88%86%e6%94%af","status":"publish","type":"post","link":"http:\/\/www.qdabc.cn\/?p=2058","title":{"rendered":"gitHub\u5220\u9664\u9ed8\u8ba4\u7684master\u5206\u652f"},"content":{"rendered":"<p>\u5982\u679c\u7528\uff1a<\/p>\n<p>git branch -D master;\/\/\u5220\u9664\u672c\u5730master\u5206\u652f<\/p>\n<p>git push origin :master;\/\/\u5220\u9664\u8fdc\u7a0bmaster\u5206\u652f<br \/>\n\u4f1a\u53d1\u73b0\u5220\u9664\u4e0d\u4e86\uff0c\u56e0\u4e3a\u5728\u672c\u5730\u60a8\u5904\u5728master\u5206\u652f\uff0c\u5728\u8fdc\u7a0bmaster\u4e3a\u9ed8\u8ba4\u5206\u652f\u3002<br \/>\n\u89e3\u51b3\u4e4b\u9053\uff1a<\/p>\n<p>1.\u5148\u5efa\u7acb\u81ea\u5df1\u7684\u5206\u652f\u3002<\/p>\n<p>git\u547d\u4ee4\u884c\uff1a<\/p>\n<p>git branch temp;<\/p>\n<p>git push origin temp:temp;\/\/\u5c06temp\u5206\u652f\u63d0\u4ea4\u5230\u8fdc\u7a0b\u5206\u652f\u4e0a\u3002<\/p>\n<p>2.\u5728github\u4e0a\u5c06master\u5206\u652f\u8bbe\u7f6e\u6210\u4e0d\u662fdefault\u7684\u5206\u652f\uff0c\u8fd9\u91cc\u5c31\u8981\u9009\u62e9temp\u5206\u652f\u4e86\uff0c\u56e0\u4e3a\u53ea\u6709\u4e24\u4e2a\u5206\u652f\u3002<\/p>\n<p>github\u64cd\u4f5c\uff0c\u70b9\u51fb\u540e\u9762\u7684settings\uff0c\u9009\u62e9\u4e0d\u662fmaster\u7684\u5206\u652f\u4e3a\u9ed8\u8ba4\u3002<br \/>\n3.\u518d\u4f7f\u7528\u5220\u9664:\uff08\u52a1\u5fc5\u5c06\u5f53\u524d\u5206\u652f\u5207\u6362\u5230\u5176\u4ed6\u5206\u652f\u518d\u5220\u9664\uff09<\/p>\n<p>git branch -D master;\/\/\u5220\u9664\u672c\u5730master\u5206\u652f<\/p>\n<p>git push origin :master;\/\/\u5220\u9664\u8fdc\u7a0bmaster\u5206\u652f<\/p>\n<p>\u8fd9\u6837\u5c31\u5b8c\u6210\u5220\u9664\u4e86\u3002<\/p>\n<p>4.\u5982\u679c\u4f60\u8fd8\u60f3\u5728\u5c06master\u5206\u652f\u505a\u4e3a\u9ed8\u8ba4\u7684\u5206\u652f\uff0c\u518d\u5efa\u4e00\u4e2a\u53ebmaster\u7684\u5206\u652f\uff0c\u7136\u540e\u7c7b\u4f3c\u64cd\u4f5c\uff08\u5c06\u5185\u5bb9\u63d0\u4ea4\u5230master\u5206\u652f\u4e0a\uff0cpush\u5230\u8fdc\u7a0b\u7684github\u4e0a\uff0c\u8fdb\u5165settings\u4e2d\u8bbe\u7f6emaster\u4e3a\u9ed8\u8ba4\u7684\u5206\u652f\u5373\u53ef\u3002\uff09<\/p>\n<p class=\"post-copyright\">\u6b22\u8fce\u5206\u4eab\u672c\u6587\uff0c\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\uff1a<a href=\"http:\/\/www.qdabc.cn\">\u524d\u7aefABC<\/a> &raquo; <a href=\"http:\/\/www.qdabc.cn\/?p=2058\">gitHub\u5220\u9664\u9ed8\u8ba4\u7684master\u5206\u652f<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u7528\uff1a git branch -D master;\/\/\u5220\u9664\u672c\u5730master\u5206\u652f git push origin :master;\/\/\u5220\u9664\u8fdc\u7a0bmaster\u5206\u652f \u4f1a\u53d1\u73b0\u5220\u9664\u4e0d\u4e86\uff0c\u56e0\u4e3a\u5728\u672c\u5730\u60a8\u5904\u5728mast [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2058"}],"collection":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2058"}],"version-history":[{"count":1,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2058\/revisions"}],"predecessor-version":[{"id":2059,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2058\/revisions\/2059"}],"wp:attachment":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2058"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}