title: Git basic usage
開新的分支
git checkout -b new_branch_name: 新增一個分支,等同於git branch new_branch_name + git checkout new_branch_name
合併
當new_branch開發完成之後,要合併到master當中。git checkout master: 切換回主幹
git merge new_branch: 合併至主幹
git push: 推送至遠端倉庫
其他
git branch: 顯示目前的分支
git checkout branch_name: 換到指定的branch