我试图将代码推送到我的远程分支。我得到以下错误日志。
Unhandled Exception: System.TypeInitializationException: The type
initializer for 'Microsoft.Alm.Cli.Program' threw an exception.
--->
System.Runtime.InteropServices.SEHException: External component has
thrown an exception.
at AzureDevOps.Authentication.TokenScope.op_BitwiseOr(TokenScope left, TokenScope right)
at Microsoft.Alm.Cli.Program..cctor()
--- End of inner exception stack trace ---
at Microsoft.Alm.Cli.Program.Main(String[] args)
fatal: Authentication failed for
'https://dev.azure.com/ubplDevOps/ConnectrixCompanyAndroidApp/_git/ConnectrixCompanyAndroidApp/'
当我发送push命令时,会弹出一个密码弹出窗口,但是当我输入密码时会出现上述错误。我可以使用相同的密码登录网上帐户,但不允许我按。
检查在克隆Azure存储库时,是否看到选项“ Generate Git Credentials”,如下所示: seen here
还要检查使用的远程URL:
git config --get remote.<azure-remote-name>.url
# or simply
git remote -v
# check the URL referring to azure
如果其中包含项目帐户,则用您的Azure用户名(登录到Azure帐户时使用的用户名)替换该URL。
我在同一个存储库上工作了大约2个月。昨天开始出现此错误。
最近没有Azure事件,因此请尝试更改密码,以查看该重置是否对您当前的问题有影响
该OP维韦克·米什拉点的意见,以个人的访问令牌,这在OP的情况下已经过期。
Azure有一些个人访问令牌,该令牌对于我的用户已过期。
我重新生成了令牌并添加了它,然后它开始工作
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句