git commit提示nothing to commit, working tree clean
本次想在码云上提交过的项目,同时提交到github上。
git报
Your branch is up-to-date with ‘origin/master’ ,
nothing to commit, working tree clean
最后查找原因:我没有修改过文件,再次提交到码云的分支上,导致git判断我没有更改,从而不能commit。
解决办法:
办法一:可以分为两步上传:(比较麻烦)
1.先提交到github
2.将最新的代码复制一份到码云的文件夹,提交到码云
办法二:在一个仓库里面同时提交到多个
原创
2020-09-12 11:04:08 ·
80728 阅读 ·
3 评论