git 删除 项目remote

Posted on 2017-07-12 15:42  番茄番茄  阅读(2756)  评论(0编辑  收藏  举报

项目已经提交到仓库,已经生成.git文件,但是又需要重新上传,就可以用一下命令删除remote

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/zhoushenglei/aaa.git
git push -u origin master

 

git remote remove origin