使用用户名的 Bitbucket Urls
Bitbucket Urls using user name
当我使用 sourcetree 克隆我的 bitbucket git 存储库时,URL 包含我的用户名。
当我的同事进行克隆时,URL 使用她的用户名。
例如
https://myusername@bitbucket.org/ourteamname/ourrepositoryname.git
https://herusername@bitbucket.org/ourteamname/ourrepositoryname.git
都解决了
https://bitbucket.org/ourteamname/ourrepositoryname.git
当我在浏览器中转到 URL 时,它们都解析为不同的位桶 URL。
直到我意识到这是正在发生的事情,我发现 URL 中的用户名非常混乱。为什么要这样做?
克隆 URLs 可以有两个不同的用户名:一个用于连接的用户(https://
和 @bitbucket.org
之间的用户名),一个用于 repo 的所有者( bitbucket.org
和 repo 名称之间的用户名)。
回购所有者包含在回购 URL 中以区分 https://bitbucket.org/mirror/linux
和 https://bitbucket.org/some-random-user/linux
,这可能完全不相关。
当我使用 sourcetree 克隆我的 bitbucket git 存储库时,URL 包含我的用户名。
当我的同事进行克隆时,URL 使用她的用户名。
例如
https://myusername@bitbucket.org/ourteamname/ourrepositoryname.git https://herusername@bitbucket.org/ourteamname/ourrepositoryname.git
都解决了
https://bitbucket.org/ourteamname/ourrepositoryname.git
当我在浏览器中转到 URL 时,它们都解析为不同的位桶 URL。
直到我意识到这是正在发生的事情,我发现 URL 中的用户名非常混乱。为什么要这样做?
克隆 URLs 可以有两个不同的用户名:一个用于连接的用户(https://
和 @bitbucket.org
之间的用户名),一个用于 repo 的所有者( bitbucket.org
和 repo 名称之间的用户名)。
回购所有者包含在回购 URL 中以区分 https://bitbucket.org/mirror/linux
和 https://bitbucket.org/some-random-user/linux
,这可能完全不相关。