1. 新建分支 xxx
2. git pull (目錄下 命令行將線上分支拉倒本地)
3. git checkout xxx (切換到到該分支 )
(可使用 git status 查看目前處於哪一個分支)
4. 然后 coding...
5. git add . (有個英文狀態的句號!!!)
6.git commit -m 'qw4awe' (提交,-m ''提示信息)
7. git push
8. git checkout master (回到主分支)
9. git merge xxx (將該分支合並到主分支上)
10. git push
ps. 當新建並打開分支時發現某一個分支的內容不見了,只需要在當前分支下 git merge 消失的分支