gpt4 book ai didi

git - 删除远程 fork

转载 作者:太空狗 更新时间:2023-10-29 13:53:17 26 4
gpt4 key购买 nike

我想删除 bitbucket 跟踪分支。我不确定我使用的术语是否正确,所以这可能是我无法通过 Google 寻求解决方案的原因。

这是我的:

tom@thinkpad:~/example$ git remote -v
bitbucket git@bitbucket.org:TomLeo/example.git (fetch)
bitbucket git@bitbucket.org:TomLeo/example.git (push)
origin git@github.com:TomLeo/example.git (fetch)
origin git@github.com:TomLeo/example.git (push)

这就是我想要的:

tom@thinkpad:~/example$ git remote -v
origin git@github.com:TomLeo/example.git (fetch)
origin git@github.com:TomLeo/example.git (push)

最佳答案

你可以运行:

git remote remove bitbucket

来自 git-remote 手册页:

git remote remove < name >

remove, rm

   Remove the remote named <name>. All remote-tracking branches and configuration settings for the remote are removed.

关于git - 删除远程 fork ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27639520/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com