{"id":1581,"date":"2013-08-28T21:46:04","date_gmt":"2013-08-29T04:46:04","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=1581"},"modified":"2013-08-28T21:46:04","modified_gmt":"2013-08-29T04:46:04","slug":"git-branch","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2013\/08\/28\/git-branch\/","title":{"rendered":"git branch"},"content":{"rendered":"

Just leave a note here since I cannot recall this from time to time …<\/p>\n

    \n
  1. git branch new_branch<\/li>\n
  2. git checkout new_branch<\/li>\n
  3. git push origin new_branch<\/li>\n
  4. (git commit, git push, …)<\/li>\n
  5. git checkout master<\/li>\n
  6. git merge new_branch<\/li>\n
  7. git push<\/li>\n<\/ol>\n

    Actually it’s pretty straightforward, but I just cannot memorize … especially step #3, sigh …<\/p>\n","protected":false},"excerpt":{"rendered":"

    Just leave a note here since I cannot recall this from time to time … git branch new_branch git checkout new_branch git push origin new_branch (git commit, git push, …) git checkout master git merge new_branch git push Actually it’s pretty straightforward, but I just cannot memorize … especially step #3, sigh …<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[452,451,453],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1581"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=1581"}],"version-history":[{"count":1,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1581\/revisions"}],"predecessor-version":[{"id":1582,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1581\/revisions\/1582"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=1581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=1581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=1581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}