2017-07-17 52 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