Git 推送错误:无法使用“wincredman”凭据存储保留凭据

问题描述 投票:0回答:0

我正在使用 .NET 运行一项任务,该任务将更改提交并推送到 Azure 上的 git 存储库,但出现错误:

fatal: Unable to persist credentials with the 'wincredman' credential store.
See https://aka.ms/gcm/credstores for more information.

当我尝试执行最终的 git 命令时,我需要执行以下操作:

git push origin main

我也得到:

Cygwin WARNING:
Couldnt compute FAST_CWD pointer. This typically occurs if youre using
an older Cygwin version on a newer Windows. Please update to the latest
available Cygwin version from https://cygwin.com/. If the problem persists,
please see https://cygwin.com/problems.html

之前 和

error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://[company].visualstudio.com': No such file or directory

之后

但我不认为这是导致问题的原因。

我的命令是:

("PowerShell"); //so it can cd to the webshare. 

(@"cd \\[filepath]\");

(@"git add *"); //stage new files or changes

(@"git commit -m ""Daily Mainframe Repository Commit"" "); //commit changes

(@"git push origin main"); //push changes to repo

("exit");                  //Execute exit.

什么

致命:无法使用“wincredman”凭据存储持久保存凭据。 有关详细信息,请参阅https://aka.ms/gcm/credstores

是什么意思?我看过some documentation但这并没有真正帮助诊断。有什么想法吗?

c# .net git azure-devops repository
© www.soinside.com 2019 - 2024. All rights reserved.