如何在 windows OS 中使用命令行删除 bitbucket 中的本地和远程存储库?
How to delete local and remote repositories in bitbucket using command line in windows OS?
我正在尝试使用 git bash.
删除 bitbucket 中的本地和远程存储库
我可以使用存储库的 myroot 目录中的 .git 目录删除我的本地存储库,但是
git remote rm repositoryURL
用于删除远程报告,但我不能。
你能帮帮我吗
谢谢
你这里有一些问题。
git remote rm repositoryURL
used to delete remote report but i could not.
首先,git remote rm
is used with the name
of the remote,不是它的 URL。你必须做类似 git remote rm origin
.
的事情
此更新的命令将不起作用,因为您已经删除了 .git/
,因此您不再拥有本地存储库。 git remote
需要本地存储库。
但即使您在删除 .git/
之前 运行 git remote rm
,它也不会删除 Bitbucket 上的存储库。文档说 git remote rm <name>
Remove the remote named <name>
. All remote-tracking branches and configuration settings for the remote are removed.
这只是将您的本地副本配置为忘记它所知道的关于远程的所有信息。 Bitbucket 上的 repo 将仍然存在,例如,您可以再次克隆它。
要真正从 Bitbucket 中删除存储库,您必须登录到它的 Web 界面并在那里进行操作(或者可能使用 API)。
我正在尝试使用 git bash.
删除 bitbucket 中的本地和远程存储库我可以使用存储库的 myroot 目录中的 .git 目录删除我的本地存储库,但是
git remote rm repositoryURL
用于删除远程报告,但我不能。
你能帮帮我吗 谢谢
你这里有一些问题。
git remote rm repositoryURL
used to delete remote report but i could not.
首先,git remote rm
is used with the name
of the remote,不是它的 URL。你必须做类似 git remote rm origin
.
此更新的命令将不起作用,因为您已经删除了 .git/
,因此您不再拥有本地存储库。 git remote
需要本地存储库。
但即使您在删除 .git/
之前 运行 git remote rm
,它也不会删除 Bitbucket 上的存储库。文档说 git remote rm <name>
Remove the remote named
<name>
. All remote-tracking branches and configuration settings for the remote are removed.
这只是将您的本地副本配置为忘记它所知道的关于远程的所有信息。 Bitbucket 上的 repo 将仍然存在,例如,您可以再次克隆它。
要真正从 Bitbucket 中删除存储库,您必须登录到它的 Web 界面并在那里进行操作(或者可能使用 API)。