無法再推送到 myProject.visualstudio.com (Can't push to myProject.visualstudio.com anymore)


問題描述

無法再推送到 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 MeemsEric SmithPaul Meems)

參考文件

  1. Can't push to myProject.visualstudio.com anymore (CC BY‑SA 2.5/3.0/4.0)

#azure-devops #visual-studio #Git #azure-repos






相關問題

Visual Studio Online Build - Visual Studio SDK 和 Modellng SDK (Visual Studio Online Build - Visual Studio SDK and Modellng SDK)

有沒有辦法將現有的“功能”分配給史詩? (Is there a way to assign existing "feature" to epic?)

在路徑 Visual Studio Team Services 中找不到 curl (curl was not found in the path Visual Studio Team Services)

遠程 TFS 2015 到 Azure Devops(私有云)遷移 (Remote TFS 2015 to Azure Devops (private cloud) Migration)

無法再推送到 myProject.visualstudio.com (Can't push to myProject.visualstudio.com anymore)

使用 Visual Studio Code 連接 AzureDevOps Git 存儲庫時出現問題 (Issue in connecting AzureDevOps Git repo using Visual Studio Code)

適用於 Azure DevOps 和本地 PC 的發布生成事件 (Post Build event that works on both Azure DevOps and Local PC)

使用 Azure Devops 進行 CI/CD 部署 (CI/CD Deployment Using Azure Devops)

取回我創建的 DevOps 組織的所有權 (Get back ownership of DevOps organization that was created by me)

在使用源代碼管理時,我如何才能對源代碼的不同部分的用戶組擁有不同的權限? (While using source control, how can I have different permissions for groups of users for different parts of the source code?)

在 Azure DevOps 中自動更改用戶的訪問級別 (Automatically change access level on a user in Azure DevOps)

Azure DevOps Powershell 獲取與構建管道相關的工作項 (Azure DevOps Powershell get work item related to build pipeline)







留言討論