{"id":22,"date":"2020-07-15T15:21:19","date_gmt":"2020-07-15T07:21:19","guid":{"rendered":"http:\/\/blog.gamekingtao.top\/?p=22"},"modified":"2021-05-25T10:25:08","modified_gmt":"2021-05-25T02:25:08","slug":"%e5%b0%86%e8%bf%9c%e7%a8%8bgit%e4%bb%93%e5%ba%93%e9%87%8c%e7%9a%84%e6%8c%87%e5%ae%9a%e5%88%86%e6%94%af%e6%8b%89%e5%8f%96%e5%88%b0%e6%9c%ac%e5%9c%b0%ef%bc%88%e6%9c%ac%e5%9c%b0%e4%b8%8d%e5%ad%98","status":"publish","type":"post","link":"https:\/\/blog.gamekingtao.top\/index.php\/2020\/07\/15\/%e5%b0%86%e8%bf%9c%e7%a8%8bgit%e4%bb%93%e5%ba%93%e9%87%8c%e7%9a%84%e6%8c%87%e5%ae%9a%e5%88%86%e6%94%af%e6%8b%89%e5%8f%96%e5%88%b0%e6%9c%ac%e5%9c%b0%ef%bc%88%e6%9c%ac%e5%9c%b0%e4%b8%8d%e5%ad%98\/","title":{"rendered":"\u5c06\u8fdc\u7a0bgit\u4ed3\u5e93\u91cc\u7684\u6307\u5b9a\u5206\u652f\u62c9\u53d6\u5230\u672c\u5730\uff08\u672c\u5730\u4e0d\u5b58\u5728\u7684\u5206\u652f\uff09"},"content":{"rendered":"<p>\u6458\u81ea\uff1ahttps:\/\/www.cnblogs.com\/hamsterPP\/p\/6810831.html<\/p>\n<p>\u5f53\u6211\u60f3\u4ece\u8fdc\u7a0b\u4ed3\u5e93\u91cc\u62c9\u53d6\u4e00\u6761\u672c\u5730\u4e0d\u5b58\u5728\u7684\u5206\u652f\u65f6\uff1a<\/p>\n<p>git checkout -b \u672c\u5730\u5206\u652f\u540d origin\/\u8fdc\u7a0b\u5206\u652f\u540d<br \/>\u8fd9\u4e2a\u5c06\u4f1a\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u672c\u5730\u5206\u652f\uff0c\u5e76\u4e0e\u6307\u5b9a\u7684\u8fdc\u7a0b\u5206\u652f\u5173\u8054\u8d77\u6765\u3002<br \/>\u4f8b\u5982\u8fdc\u7a0b\u4ed3\u5e93\u91cc\u6709\u4e2a\u5206\u652fdev2,\u6211\u672c\u5730\u6ca1\u6709\u8be5\u5206\u652f\uff0c\u6211\u8981\u628adev2\u62c9\u5230\u6211\u672c\u5730\uff1a<br \/>\u82e5\u6210\u529f\uff0c\u5c06\u4f1a\u5728\u672c\u5730\u521b\u5efa\u65b0\u5206\u652fdev2,\u5e76\u81ea\u52a8\u5207\u5230dev2\u4e0a\u3002<br \/>\u5982\u679c\u51fa\u73b0\u63d0\u793a\uff1a<\/p>\n<p>fatal: Cannot update paths and switch to branch &#8216;dev2&#8217; at the same time.<br \/>Did you intend to checkout &#8216;origin\/dev2&#8217; which can not be resolved as commit?<br \/>\u8868\u793a\u62c9\u53d6\u4e0d\u6210\u529f\u3002\u6211\u4eec\u9700\u8981\u5148\u6267\u884c<\/p>\n<p>git fetch<br \/>\u7136\u540e\u518d\u6267\u884c<\/p>\n<p>git checkout -b \u672c\u5730\u5206\u652f\u540d origin\/\u8fdc\u7a0b\u5206\u652f\u540d<br \/>\u5373\u53ef\u3002<\/p>\n<p>\u672c\u5730\u5237\u65b0\u8fdc\u7a0b\u4ed3\u5e93\u5206\u652f<\/p>\n<p>git remote update origin -p<\/p>\n\n\n<figure class=\"wp-block-image\"><img alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u81ea\uff1ahttps:\/\/www.cnblogs.com\/hamsterPP\/p\/6810831.html \u5f53\u6211\u60f3 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.gamekingtao.top\/index.php\/2020\/07\/15\/%e5%b0%86%e8%bf%9c%e7%a8%8bgit%e4%bb%93%e5%ba%93%e9%87%8c%e7%9a%84%e6%8c%87%e5%ae%9a%e5%88%86%e6%94%af%e6%8b%89%e5%8f%96%e5%88%b0%e6%9c%ac%e5%9c%b0%ef%bc%88%e6%9c%ac%e5%9c%b0%e4%b8%8d%e5%ad%98\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u5c06\u8fdc\u7a0bgit\u4ed3\u5e93\u91cc\u7684\u6307\u5b9a\u5206\u652f\u62c9\u53d6\u5230\u672c\u5730\uff08\u672c\u5730\u4e0d\u5b58\u5728\u7684\u5206\u652f\uff09\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":4,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":209,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions\/209"}],"wp:attachment":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}