摘要:GIT-Branch
顯示Branch 清單
git branch
刪除Branch
git branch -D project
切換Branch
git checkout tomlai-v2.3.1
其它語法
git commit -am "v3.0.0"
git add .
git status
git log
Pull Branch 順序
git remote update
git branch [branch name]
git checkout [branch_name]
git pull origin [branch_name]
//若出問題則 (檢查狀態,若不commit則捨棄狀態
git status
git checkout .
git pull origin [branch_name]
//檢查log
git log
git branch [new branch]
git checkout [new branch]
//弄錯,回到某一時間點的commit
git add .
git commit -am "test"
git reset --hard [commit code]
//重新命名
git branch -m old-branch new-branch
git branch -m new-branch
//下載所有的git ,並切換branch
git remote update
git checkout branch