{"id":20,"date":"2020-07-15T15:17:05","date_gmt":"2020-07-15T07:17:05","guid":{"rendered":"http:\/\/blog.gamekingtao.top\/?p=20"},"modified":"2020-07-15T15:17:05","modified_gmt":"2020-07-15T07:17:05","slug":"git%e5%88%9b%e5%bb%ba%e6%9c%ac%e5%9c%b0%e5%88%86%e6%94%af%ef%bc%8c%e6%8e%a8%e9%80%81%e5%88%b0%e8%bf%9c%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/blog.gamekingtao.top\/index.php\/2020\/07\/15\/git%e5%88%9b%e5%bb%ba%e6%9c%ac%e5%9c%b0%e5%88%86%e6%94%af%ef%bc%8c%e6%8e%a8%e9%80%81%e5%88%b0%e8%bf%9c%e7%a8%8b\/","title":{"rendered":"git\u521b\u5efa\u672c\u5730\u5206\u652f\uff0c\u63a8\u9001\u5230\u8fdc\u7a0b"},"content":{"rendered":"<p>\u521b\u5efa\u672c\u5730\u5206\u652f<br \/>\ngit branch \u5206\u652f\u540d<\/p>\n<p>\u4f8b\u5982\uff1agit branch dev\uff0c\u8fd9\u6761\u547d\u4ee4\u662f\u57fa\u4e8e\u5f53\u524d\u5206\u652f\u521b\u5efa\u7684\u672c\u5730\u5206\u652f\uff0c\u5047\u8bbe\u5f53\u524d\u5206\u652f\u662fmaster(\u8fdc\u7a0b\u5206\u652f)\uff0c\u5219\u662f\u57fa\u4e8emaster\u5206\u652f\u521b\u5efa\u7684\u672c\u5730\u5206\u652fdev\u3002<\/p>\n<p>\u5220\u9664\u672c\u5730\u5206\u652f(\u5fc5\u987b\u4fdd\u8bc1\u4e0d\u5728\u5220\u9664\u7684\u5206\u652f\u4e0a\uff0c\u624d\u80fd\u8fdb\u884c\u5220\u9664)<\/p>\n<p> git branch -d dev <\/p>\n<p>\u5207\u6362\u5230\u672c\u5730\u5206\u652f<br \/>\n git checkout \u5206\u652f\u540d <\/p>\n<p>\u4f8b\u5982\uff1agit checkout dev\uff0c\u8fd9\u6761\u547d\u4ee4\u8868\u793a\u4ece\u5f53\u524dmaster\u5206\u652f\u5207\u6362\u5230dev\u5206\u652f\u3002<\/p>\n<p>\u521b\u5efa\u672c\u5730\u5206\u652f\u5e76\u5207\u6362<br \/>\n git checkout -b \u5206\u652f\u540d<br \/>\n\u4f8b\u5982\uff1agit checkout -b dev\uff0c\u8fd9\u6761\u547d\u4ee4\u628a\u521b\u5efa\u672c\u5730\u5206\u652f\u548c\u5207\u6362\u5230\u8be5\u5206\u652f\u7684\u529f\u80fd\u7ed3\u5408\u8d77\u6765\u4e86\uff0c\u5373\u57fa\u4e8e\u5f53\u524d\u5206\u652fmaster\u521b\u5efa\u672c\u5730\u5206\u652fdev\u5e76\u5207\u6362\u5230\u8be5\u5206\u652f\u4e0b\u3002<\/p>\n<p>\u63d0\u4ea4\u672c\u5730\u5206\u652f\u5230\u8fdc\u7a0b\u4ed3\u5e93<br \/>\ngit push origin \u672c\u5730\u5206\u652f\u540d<br \/>\n\u4f8b\u5982\uff1a git push origin dev \uff0c\u8fd9\u6761\u547d\u4ee4\u8868\u793a\u628a\u672c\u5730dev\u5206\u652f\u63d0\u4ea4\u5230\u8fdc\u7a0b\u4ed3\u5e93\uff0c\u5373\u521b\u5efa\u4e86\u8fdc\u7a0b\u5206\u652fdev\u3002<\/p>\n<p>\u5220\u9664\u8fdc\u7a0b\u5206\u652f<\/p>\n<p>git push &#8211;delete origin dev<\/p>\n<p>\u8f6c\u81eahttps:\/\/www.cnblogs.com\/lidedong\/p\/11245165.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521b\u5efa\u672c\u5730\u5206\u652f git branch \u5206\u652f\u540d \u4f8b\u5982\uff1agit branch dev\uff0c\u8fd9\u6761\u547d\u4ee4\u662f\u57fa\u4e8e\u5f53\u524d\u5206\u652f\u521b\u5efa\u7684\u672c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.gamekingtao.top\/index.php\/2020\/07\/15\/git%e5%88%9b%e5%bb%ba%e6%9c%ac%e5%9c%b0%e5%88%86%e6%94%af%ef%bc%8c%e6%8e%a8%e9%80%81%e5%88%b0%e8%bf%9c%e7%a8%8b\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cgit\u521b\u5efa\u672c\u5730\u5206\u652f\uff0c\u63a8\u9001\u5230\u8fdc\u7a0b\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\/20"}],"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=20"}],"version-history":[{"count":1,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions\/21"}],"wp:attachment":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}