Git Branch(分支)
1. 查看分支
git branch
2. 創建分支
git branch <branch-name>
3. 切換分支
git checkout <branch-name>
4. 創建 + 切換分支
git checkout -b <branch-name>
5. 合併某分支到 當前分支上
git merge <branch-name>
git merge --no-ff -m 'some comments' dev
6. 刪除分支
git branch -d <branch-name>
git branch -D <branch-name>
7. 查看合併分支情況
-- -- ---
8. stash
git stash
git stash list
git stash apply stash@{0}
git stash grop stash@{0}
git stash pop
9. 與遠程服務器
git remote -v
git push origin local-branch:remote-branch
git checkout -b <branch-name> origin/<branch-name>
git branch --set-upstream <branch-name> origin/<branch-name>
git pull