因此,有我的帐户到位桶:BitbucketAccountMain。 我不是第一次创建存储库。 并授予访问名为BitBucketGuy的bitbucket上的家伙。 所有的时间git都会尝试使用我的登录授权他。的Git尝试登录到其他的
跆拳道,现在可好?
因此,有我的帐户到位桶:BitbucketAccountMain。 我不是第一次创建存储库。 并授予访问名为BitBucketGuy的bitbucket上的家伙。 所有的时间git都会尝试使用我的登录授权他。的Git尝试登录到其他的
跆拳道,现在可好?
他的帐户必须在你的电脑配置为您的标准帐户,你可以改变它,这里是教程,我知道这是一个Git枢纽页面,但是这个过程是相同的:
https://help.github.com/articles/setting-your-username-in-git/
你有没有给其他用户一个URL,如https://[email protected]/BitbucketAccountMain/repo.git
?如果是这样,那么你指示他们的系统使用BitbucketAccountMain作为用户名。
其他用户需要将第一个“BitbucketAccountMain”(@符号前面的那个)更改为他们自己的用户名,如https://[email protected]/BitbucketAccountMain/repo.git
。
看你origin
,当你通过克隆HTTPS回购(当您共享克隆网址不改变用户名),这可能会发生。
git remote -v
它会告诉你像
origin https://<someusername>@<url>/<path>.git (fetch)
origin https://<someusername>@<url>/<path>.git (push)
,所以你需要更换正确
git remote remove origin
git remote add origin https://<yourusername>@<url>/<path>.git
您的用户名,验证:
git remote -v
你是什么意思“试图通过我的登录授权他”?它会尝试使用您的帐户登录推/拉操作?你的意思是不同的? –