Git 創建分支並進行分支合併和更新

  • Create new branch: git checkout -b branch_name
  • Create/link to remote sub-branch : git push --set-upstream origin branch_name
  • Swith to sub-branch: git checkout branch_name
  • Merge sub-branch code into master:
    git checkout master
    git merge branch_name
  • Update master code into sub-branch: git merge master/git update
  • Delete sub-branch: git checkout -d branch_name
    delete remote sub-branch, use soctrack
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章