首次repo sync代码失败,第二次sync时报错:
Fetching projects: 73% (560/766) xxx: unable to get credential storage lock: File exists
一个可以尝试的解决方案:
1. 先git config -l,检查一下当前git配置是否有credential.helper=store
2. 如果是,输入git config --global credential.helper cache,将密钥保存方式改为cache
3. 再次repo sync,注意,此时会要求你输入git的账号密码,密钥cache的时长默认为900秒。官方参考连接:Git - 凭证存储
4.注意repo sync完成后,记得把配置还原回来,git config --global credential.helper store