-
1、想拉取远程代码时报错
image.png -
2、git stash 标签名 ---------暂存起来,名字为mytag
image.png -
3、git pull ----------把远程的内容拉取下来
image.png -
4、git stash drop stash@{0} ---------把远程的和本地的合并
image.png
-
5、git stats--------查看冲突的文件
image.png -
6、打开手动修改文件
改变前:
image.png
改变后:
image.png 7、git stash drop stash@{0}---------删除暂存标签
8、git stash clear ----------清楚暂存区
9、git add . --------------添加到本地仓库
10 、git commit -m "xxx" -------重新提交
-
11、git push ----------上传
image.png