工作区->暂存区 git add .
暂存区->仓库 git commit -m "提交描述"
查看状态 git status
查看提交记录 git log --all --pretty=oneline --abbrev-commit --graph
版本回退 git reset --hard <commitID>
查看分支 git branch
创建并切换分支 git checkout -b 分支名
分支合并(首先要切换到master目标分支) git merge 分支名
工作区->暂存区 git add .
暂存区->仓库 git commit -m "提交描述"
查看状态 git status
查看提交记录 git log --all --pretty=oneline --abbrev-commit --graph
版本回退 git reset --hard <commitID>
查看分支 git branch
创建并切换分支 git checkout -b 分支名
分支合并(首先要切换到master目标分支) git merge 分支名