Skip to content

Instantly share code, notes, and snippets.

@ph5i
Created February 6, 2025 12:29
Show Gist options
  • Save ph5i/eff83f4b032911bf32a18ad06bb58fbd to your computer and use it in GitHub Desktop.
Save ph5i/eff83f4b032911bf32a18ad06bb58fbd to your computer and use it in GitHub Desktop.
fast gcm setup for wsl
#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