2015-06-17 61 views
7

試圖從我的藏匿項目拉動,使用以下命令:藏匿Git的錯誤「致命:遠程錯誤:CAPTCHA需要」

$ git remote add origin https://[email protected]/scm/~username/project.git 
$ git pull origin develop 

提示我爲我的密碼,我輸入後得到以下錯誤:

Your Stash account has been marked as requiring a CAPTCHA to be solved before you may login again. This is typically caused by too many attempts to login with an incorrect password. The required CAPTCHA prevents your SCM client from accessing Stash until it is solved, even if you enter your password correctly. If you are currently logged in to Stash via a browser you may need to logout and then log back in in order to clear the CAPTCHA.

退出並重新登錄不起作用。我該如何解決?

回答

8

驗證碼警告的另一個常見問題似乎與密碼更改有關。一旦密碼在您使用身份驗證的系統中發生變化,sourcetree和eclipse插件可能與已登錄的bitbucket會話中的密碼衝突,從而導致激活CAPTCHA身份驗證。

解決方案:進入您的bitbucket會話,註銷並重新登錄。如果問題仍然存在,那麼您可能需要檢查URL,因爲驗證碼激活會引導您到另一個方向,並且您的用戶帳戶出現URL故障將一次又一次地引發驗證失敗。

5

您可能會在BitBucket中打開一個在瀏覽器中打開的會話,這會給人一種很好的印象。只需註銷並再次登錄時,您需要解答CAPTCHA,之後您就可以開始使用了。

2

對我有用的是進入:C:\ Users \ UserName \ AppData \ Local \ Atlassian \ SourceTree 並刪除密碼文件。 Sourcetree已關閉,我已退出bitbucket。然後我重新登錄到bitbucket並解決了驗證碼。然後,當我啓動sourcetree並執行提取操作時,我輸入了密碼,一切正常。

+0

謝謝,每當我更改密碼時,唯一適用於我的解決方案 – never

+0

我在哪裏可以在Mac上找到此文件? –

+0

*不是Mac用戶*,但https://apple.stackexchange.com/questions/28928/what-is-the-osx-equivalent-to-windows-appdata-folder 我會看看(〜/ Library/Application支持)讓我知道這是否有效,我會將其添加到答案中 –