簡體   English   中英

Git 憑據管理器正在使用 IE,但我希望它使用 Edge

[英]Git Credential Manager is using IE but I want it to use Edge

我創建了一個新的 Windows Server 2022 VM,安裝了所有待處理的更新,然后安裝了最新版本的 Office 365 和 Visual Studio 2022。

Edge 已經是系統默認瀏覽器:

Edge 是默認瀏覽器

當我嘗試從 Azure DevOps 克隆一個 repo 時,Git Credential Manager window 使用 IE 作為其瀏覽器彈出:

帶有 IE 錯誤消息的 GCM 窗口

IE 不好,因為它不能正確顯示登錄頁面。 如何強制 GCM 使用 Edge?

我在命令行和 Visual Studio 中從 Git 嘗試了 Windows,但沒有任何區別。

我在沒有.gitconfig文件(默認行為)和顯式最小.gitconfig文件的情況下進行了嘗試,但沒有任何區別。

[user]
    name = <me>
    email = <me>
[credential]
    helper = 
    helper = manager
[credential "https://dev.azure.com"]
    usehttppath = true

您可以使用 credentail.msauthFlow=system 強制 git 使用您的 OS 系統瀏覽器默認值

git config --local credential.msauthFlow system

這已在 Windows Server 2019 上得到確認。可以在下面的鏈接中找到文檔。 在使用之前,請確保您已先卸載 IE 或將默認的 web 瀏覽器應用程序設置為其他任何內容。 簡單地設置默認瀏覽器將不起作用,因為 IE web 視圖將

https://github.com/git-ecosystem/git-credential-manager/blob/main/docs/configuration.md#credentialmsauthflow

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM