Git 拆下远程拨叉
我想删除bitbucket跟踪分支。我不确定我使用的术语是否正确,因此这可能是我无法通过谷歌搜索解决方案的原因 这就是我所拥有的:Git 拆下远程拨叉,git,github,Git,Github,我想删除bitbucket跟踪分支。我不确定我使用的术语是否正确,因此这可能是我无法通过谷歌搜索解决方案的原因 这就是我所拥有的: 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/exa
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远程删除bitbucket
从git远程手册页:
git远程删除 Remove the remote named <name>. All remote-tracking branches and configuration settings for the remote are removed.
删除名为的远程服务器。将删除所有远程跟踪分支和远程跟踪的配置设置。
通常,您可以使用
Git help
查看Git命令的文档,例如Git help remote
。这对报表存储库的状态没有影响,对吗?只有对本地计算机上远程分支的引用被删除。@Tom是的,它只删除跟踪部分,不影响repo-it本身。这会影响您的repo-config,git是分布式的,每个repo,不管是裸的还是其他的,都是一个完整的存储库。您的远程是对外部存储库的本地引用。通过删除远程存储库,您只会影响本地引用,而不会干扰远程存储库。