我试图删除这个“起源”的东西,这样我就可以真正从这个网站运行教程代码
http://www.railstutorial.org/book#sec:github
这是我尝试运行的代码
$ git remote add origin <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aec9c7daeec9c7dac6dbcc80cdc1c3" rel="noreferrer noopener nofollow">[email protected]</a>:delinquentme/first_app.git
我得到了这个返回:
致命:远程源已存在
问题是上面没有任何文件!
****更新****
所以我继续下一步并输入
git push origin master
现在已经全部上传了...
我对“起源”是什么还有点犹豫……以及该行的每一部分实际上是做什么的
最佳答案
如果你运行
$ git remote
您应该获得已设置的 Remote 列表。
那么你可以这样做:
$ git remote rm origin
删除原始 Remote 。
$ git remote --help
将为您提供有关“git remote”命令的更多信息
关于github "origin"删除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3074346/