WSL: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
Line 20: Line 20:
git config --global credential.guiPrompt true
git config --global credential.guiPrompt true
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"
# 在 ~/.bashrc 中寫入 GCM_WEB_BROWSER 環境變數
echo 'export GCM_WEB_BROWSER="edge"' >> ~/.bashrc  # 可填 edge, chrome, 或 firefox
source ~/.bashrc
</syntaxhighlight>
</syntaxhighlight>

Revision as of 08:54, 15 September 2026

TODO

git

git config --global credential.guiPrompt true
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"

# 在 ~/.bashrc 中寫入 GCM_WEB_BROWSER 環境變數
echo 'export GCM_WEB_BROWSER="edge"' >> ~/.bashrc   # 可填 edge, chrome, 或 firefox
source ~/.bashrc