VS2019输出,源代码管理 - Git
已在存储库 *\*\* 中本地创建提交 1a88faae
正在推送 Test
Pushing to ssh://*.*.*.*:*/*.git
Password authentication
发布到远程存储库时遇到错误: Git failed with a fatal error.
failed to acquire credentials.
Password authentication
failed to acquire credentials.
Password authentication
failed to acquire credentials.
Enumerating objects: 9, done.
Delta compression using up to 16 threads
Compressing objects: 20% (1/5)
Compressing objects: 40% (2/5)
Compressing objects: 60% (3/5)
Compressing objects: 80% (4/5)
Compressing objects: 100% (5/5)
Compressing objects: 100% (5/5), done.
Writing objects: 20% (1/5)
Writing objects: 40% (2/5)
Writing objects: 60% (3/5)
Writing objects: 80% (4/5)
Writing objects: 100% (5/5)
Writing objects: 100% (5/5), 438 bytes | 219.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 33% (1/3)
remote: Resolving deltas: 66% (2/3)
remote: Resolving deltas: 100% (3/3)
remote: Resolving deltas: 100% (3/3)
remote: Updating references: 100% (1/1)
remote: Updating references: 100% (1/1)
To ssh://*.*.*.*:*/*.git
f1e61ab8d..1a88faaeb Test -> Test
updating local tracking ref 'refs/remotes/origin/Test'
failed to acquire credentials.
但又能提交成功,求解决思路!
提交是提交到本地,推送是push到远程仓库,提交成功,push失败。
在cmd里面 试一试 git push.
怀疑是git服务器https的证书配置问题,换成http没问题。
我的提交和push都是成功的,只是会报一个“failed to acquire credentials.”。