在不更改旧存储库地址的情况下更改用户名?

change username without changing the old repository address ?

我想更改我的 bitbucket 用户名。 Bitbucket 允许我多次更改用户名,但有警告

Renaming this account will change the URLs of 3 repository

我正在与一个 team.changing 合作,这个名字是否会给其他团队成员带来问题?。他们有解决这个问题的替代方案吗?

除此之外别无选择。您的存储库位于 bitbucket.org/<username>/<repositoryname>。更改用户名显然会更改每个存储库的 URL。

如果您想保留旧的 URL,则不能重命名您的帐户。

拥有新的存储库 URL 应该不是一个太困难的问题,并且您可以轻松地在您的团队中进行沟通。修复也很简单:

git remote set-url origin git@bitbucket.org/<newusername>/<repositoryname>