需要转移的仓库的路径拷贝 git remote set-url –push origin https://github.com/xrr---075/demo_egg.git 这时候已经转移了过来了 然后在正常提交代码 git add . git commit -m ‘egg’ git push 最后在仓库就可以看见项目已经上去了