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 ...

 

posted on 2022-11-20 08:32  clayyjh  阅读(22)  评论(0)    收藏  举报