問題描述
無法再推送到 myProject.visualstudio.com (Can't push to myProject.visualstudio.com anymore)
我又一次陷入了微軟的登錄地獄。 有幾個星期我不能再推送到 myproject.visualstudio.com 上我 5 歲的存儲庫了。我無法登錄。嘗試使用瀏覽器登錄時,我也無法登錄。它一直說 repo 不存在。 當使用 Chrome 的隱身瀏覽器時,我可以登錄 repo 並查看所有文件。
我還可以訪問另一個項目管理員帳戶。當我使用該帳戶登錄時,我被重定向到 dev.azure.com 並列出了一個不同的(較新的)項目。
在 VisualStudio 2017 中,我使用我在隱身瀏覽器。當我推送時,系統提示我再次登錄,然後出現此錯誤:
Pushing develop
Error: cannot spawn /d/program files (x86)/microsoft visual studio/2017/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git‑core/git‑askpass.exe: No such file or directory
Error encountered while pushing to the remote repository: Git failed with a fatal error.
could not read Username for 'https://myProject.visualstudio.com': terminal prompts disabled
Pushing to https://myProject.visualstudio.com/DefaultCollection/_git/MyApp
Failed to push to the remote repository.
我不知道如何繼續以及為什麼 git‑askpass。exe
突然需要/丟失。 我仍然每天提交我的代碼,但現在已經 3 周無法推送(上次成功推送是 1 月 22 日)。
不是確定是否相關,但我通常在 1 月中旬使用 Atlassian SourceCode 提交和推送並更新到最新版本 (v3.3.6)。大約在那個時候,我在使用完全不同的帳戶推送到 GitHub 上的 repos 時也遇到了麻煩。我通過在 SourceTree 中再次設置憑據來修復這些問題。SourceTree 和微軟一樣,不能很好地處理多個帳戶。SourceTree 仍然無法使用我的 visualstudio.com 帳戶,但我仍然可以使用 VS2017 推送 10 天左右。
不確定是否相關,但我通常在 1 月中旬使用 Atlassian SourceCode 提交和推送並更新到最新版本(v3.3.6)。大約在那個時候,我在使用完全不同的帳戶推送到 GitHub 上的 repos 時也遇到了麻煩。我通過在 SourceTree 中再次設置憑據來修復這些問題。SourceTree 和微軟一樣,不能很好地處理多個帳戶。SourceTree 仍然無法使用我的 visualstudio.com 帳戶,但我仍然可以使用 VS2017 推送 10 天左右。
不確定是否相關,但我通常在 1 月中旬使用 Atlassian SourceCode 提交和推送並更新到最新版本(v3.3.6)。大約在那個時候,我在使用完全不同的帳戶推送到 GitHub 上的 repos 時也遇到了麻煩。我通過在 SourceTree 中再次設置憑據來修復這些問題。SourceTree 和微軟一樣,不能很好地處理多個帳戶。SourceTree 仍然無法使用我的 visualstudio.com 帳戶,但我仍然可以使用 VS2017 推送 10 天左右。
像微軟一樣,不能很好地處理多個帳戶。SourceTree 仍然無法使用我的 visualstudio.com 帳戶,但我仍然可以使用 VS2017 推送 10 天左右。 像微軟一樣,不能很好地處理多個帳戶。SourceTree 仍然無法使用我的 visualstudio.com 帳戶,但我仍然可以使用 VS2017 推送 10 天左右。參考解法
方法 1:
I would try removing the git credentials stored in Credential manager windows‑> Control Panel\User Accounts\Credential Manager
or mac in the secure keychain
and follow the VS tool specific workflow to login and connect to the repo so they get recreated. More about git credential storage here.
It looks like git‑askpass.exe
is related to the git credential manager. I would also try and upgrade or reinstall that tooling.
方法 2:
As @eric‑smith also suggested I already installed the newest GIT Credential Manager, but that didn't solve my problem.
I had also installed the latest GIT client and tried GIT push
on the command line.
And ... my files are pushed. Not sure why. </p>
I went back to SourceTree and noticed it was using the embedded version of GIT which was older (lower version number) then my command‑line version. So I switched to the system version and now I can push in SourceTree as well.
And without changing anything else I can commit in VS2017 again as well.
I'm still puzzled what was going on. But I'm very glad it is working again.
(by Paul Meems、Eric Smith、Paul Meems)