git笔记2

68 阅读1分钟

问题1

image.png

解决方法

删除文件

image.png
然后使用git commit -m '提交'

问题2

出现 REBASE 1/1 image.png

解决方法

git rebase --continue

问题3

image.png

解决方法

指定线上仓库

git push -u orgin <name>

tip: 使用-u在下次提交时可以直接使用git push

问题4

远程仓库分支已删除,本地使用git branch -a查看未更新

//更新
git remote update origin --prune