- 文件查阅系列
- 查看某个文件的历史修改版本: git log --follow -p fileRelativePath
- stash系列,stash 针对整个分支
- stash: git stash / git stash save 'msg'
- stash pop: git stash pop
- 应用任意一次修改到当前目录 stash 内容不被pop出来 : git stash apply stash@{x}
- 列表:git stash list
- 清空:git stash clear
- 分支系列
- 删除本地分支:git branch -D branchName
- 创建并切换分支:git checkout -b branchName
- 切换分支:git checkout branchName