github "origin"删除

标签 git github

我试图删除这个“起源”的东西,这样我就可以真正从这个网站运行教程代码

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/

相关文章:

git - 自动化 GitHub 推送到 VSOnline

python - 使用存储在 Azure Functions 和容器应用程序的私有(private) Git 存储库中的 python 包?

search - Github GraphQL 存储库查询,提交总数

在 Windows 上使用 node.js child_process.spawn() 找不到 github ssh 公钥,但在 child_process.exec() 上可见

git - 我备份了一个git项目,并得到了 "fatal: Not a Git Repository"

git - 无法将主机添加到已知主机列表 - 意外删除了我的 .ssh 文件夹中的所有文件

linux - 为什么 Linux 内核仓库只有一个分支?

python - 错误 : RPC failed; curl 6 SSL read: error:00000000:lib(0):func(0):reason(0), 错误

Maven:从github下载依赖源的插件?

android - 如何将android项目添加到git