Created
February 6, 2025 12:29
-
-
Save ph5i/eff83f4b032911bf32a18ad06bb58fbd to your computer and use it in GitHub Desktop.
fast gcm setup for wsl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 install latest git for windows | |
https://github.com/git-for-windows/git/releases/tag/v2.47.1.windows.2 | |
#2 set gcm as the git credential helper | |
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe" | |
#3 create symlink in .zshrc | |
if [ ! -e /usr/local/bin/git-credential-manager ]; then | |
sudo ln -s "/mnt/c/Program Files/Git/mingw64/bin/git-credential-manager.exe" /usr/local/bin/git-credential-manager | |
fi | |
#4 refresh .zshrc | |
source ~/.zshrc | |
#5 config | |
git-credential-manager configure | |
git-credential-manager github login | |
# > token > https://github.com/settings/keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment