问题描述
我只是在我的 repo B
中添加了额外的 remote A
,然后运行 git fetch A
如何取消抓取?如果我只是删除远程A
: git remote删除A1
它会取消抓取?
更新:
git remote add路径/ to / A
$ b $ g $ f $ c $ g $ g $ g $ g $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $上面是我运行的命令,所以我得到了所有分支到我的 repo B
但是我只需要一个特定的分支 repo A
,我需要它在 repo B
的特定文件夹中,但这是另一个故事
您可以简单地通过删除这个远程设备来从远程 A
取消全部提取。
git remote删除A
现在只需再次添加并仅提取单一分支:
git remote add A< path / to / repos itory>
git fetch A<分支名称>
I just added additional remote A
to my repo B
and then run git fetch A
How can I undo fetch? If I just remove remote A
: git remote remove A1
would it undo fetch?
UPDATE:
git remote add A path/to/A
git fetch A
The above is commands I run so in result I got all branches fetched to my repo B
however I just need one specific branch from repo A
and I need it to go in specific folder on repo B
but that is another story Merge code between two dfferent git repositories
You can undo all fetches from remote A
simply by removing this remote:
git remote remove A
Now just add it again and fetch only single branch:
git remote add A <path/to/repository>
git fetch A <name of branch>
这篇关于如何撤消'git fetch'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!