1、对于某个分支需要暂存,可以进行stash暂存,而不需要进行无用的提交,对于新文件若stash需要先add,对于旧文件进行修改可以直接stash。
git add ...
git stash
2、仓库有merging状态,解决
2.1 场景:多分支,merge,冲突,解决,add,commit,删除分支
2.2 场景:多人协作,pull下来,冲突,解决,add,commit解决
3、流程
单分支 git add ... git commit ... git push ... git pull ... 多分支 git checkout [-b] ... git branch ... git checkout [-d] ... git merge ... 标签 git tag v1 git show v1 回退 git reset ...
本文来自博客园,作者:Clay,转载请注明原文链接:https://www.cnblogs.com/clayyjh/p/16907867.html
浙公网安备 33010602011771号