小编use*_*138的帖子

Git从本地存储库中删除上游

我正在使用ruby on rails应用程序,我正在尝试同步一个fork.值得一提的是,我也在Mac上.我做了以下行动:

$ git remote -v
Run Code Online (Sandbox Code Playgroud)

获取我的本地存储库的视图.我试图去的时候搞砸了upstream:

$ git remote add upstream https://github.com/foo/repo.git
Run Code Online (Sandbox Code Playgroud)

什么时候我应该大写Foo:

$ git remote add upstream https://github.com/Foo/repos.git
Run Code Online (Sandbox Code Playgroud)

问题是如何删除,upstream因为每次我尝试更改它,它会回来创建一个fatal错误?

git repository git-fetch

70
推荐指数
4
解决办法
9万
查看次数

标签 统计

git ×1

git-fetch ×1

repository ×1