{"id":535,"date":"2023-02-25T15:59:02","date_gmt":"2023-02-25T07:59:02","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=535"},"modified":"2023-04-29T20:40:31","modified_gmt":"2023-04-29T12:40:31","slug":"git-branch-operation","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/git-branch-operation\/","title":{"rendered":"Git\u5206\u652f\u64cd\u4f5c"},"content":{"rendered":"<h2>\u67e5\u770b\u5206\u652f<\/h2>\n<pre><code>git branch -l  #\u67e5\u770b\u672c\u5730\u5206\u652f\ngit branch -r  #\u67e5\u770b\u8fdc\u7a0b\u5206\u652f\ngit branch -a  #\u67e5\u770b\u5168\u90e8\u5206\u652f\uff08\u8fdc\u7a0b\u7684\u548c\u672c\u5730\u7684\uff09<\/code><\/pre>\n<p><!-- more --><\/p>\n<h2>\u521b\u5efa\u5206\u652f<\/h2>\n<pre><code>git checkout -b dev origin\/dev  #\u5728\u672c\u5730\u65b0\u5efa\u4e00\u4e2a\u4e0e\u8fdc\u7a0b\u7684dev\u7248\u672c\u76f8\u540c(\u88ab\u5408\u5e76\u7684\u7248\u672c)\u7684dev\u5206\u652f<\/code><\/pre>\n<h2>\u5207\u6362\u5206\u652f<\/h2>\n<pre><code>git checkout master<\/code><\/pre>\n<h2>\u5408\u5e76\u5206\u652f<\/h2>\n<pre><code>git merge dev  #\u628a\u672c\u5730\u7684dev\u5408\u5e76\u5230master<\/code><\/pre>\n<h2>\u63a8\u9001\u5206\u652f<\/h2>\n<pre><code>git push origin master  #\u628a\u672c\u5730\u7684master\u540c\u6b65\u5230\u8fdc\u7a0b<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770b\u5206\u652f git branch -l #\u67e5\u770b\u672c\u5730\u5206\u652f git branch -r #\u67e5\u770b\u8fdc\u7a0b\u5206\u652f git br [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[99],"class_list":["post-535","post","type-post","status-publish","format-standard","hentry","category-tools-skills","tag-git"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=535"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/535\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}