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