2017-07-17 49 views
0

因此,有我的帐户到位桶:BitbucketAccountMain。 我不是第一次创建存储库。 并授予访问名为BitBucketGuy的bitbucket上的家伙。 所有的时间git都会尝试使用我的登录授权他。的Git尝试登录到其他的

跆拳道,现在可好?

+0

你是什么意思“试图通过我的登录授权他”?它会尝试使用您的帐户登录推/拉操作?你的意思是不同的? –

回答

0

你有没有给其他用户一个URL,如https://[email protected]/BitbucketAccountMain/repo.git?如果是这样,那么你指示他们的系统使用BitbucketAccountMain作为用户名。

其他用户需要将第一个“BitbucketAccountMain”(@符号前面的那个)更改为他们自己的用户名,如https://[email protected]/BitbucketAccountMain/repo.git

0

看你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