出现情境:公司的电脑logid登录密码是每三个月换一次,stash的账号密码就是公司logid的密码,logid密码还完之后,stash的密码也就跟着换了。在sourceTree上commit东西之后,push的时候给出了如下反馈:
用终端命令git push的时候也照样给出这样的error:
danielle:aia_hk_ipos_ios Danielle$ git push
fatal: remote error: CAPTCHA required
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.
Visit Stash at http://aiahk-stash.aia.biz for more details.
一开始不太清楚是怎么回事,上网上百度看到类似问题有人用git clean -f解决的。试过了,对我这个不起作用。
最后通过清除Keychain里的关于stash的所有存储信息。然后登录web端的stash,输入账号和新密码。重新登录sourceTree,输入新密码。再push,ok。
其实就是因为stash的密码重置了,然后清除mac电脑本地的缓存,重新登录就可以了。