Goto https://github.com/git-ecosystem/git-credential-manager/releases/tag/v2.6.0 and download latest release
I did this on linux or WSL to allow doing a git clone of a private repo using the https:// URL
# get the latest gcm
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.0/gcm-linux_amd64.2.6.0.deb
sudo apt-get install ./gcm-linux_amd64.2.6.0.deb
sudo apt-get install pass
# generate a gpg key
gpg --gen-key
pass init 53DE2658ABE808AF2CC3CAA8E40D959BC610792B
git config --global credential.credentialStore gpg
git credential-manager configure
git credential-manager github login
# choose login with code and goto https://github.com/login/device...
Once you have installed & configured gcm you can then do a git clone of a private repo and it will authenticate automatically after asking for the gpg key passphrase
0 Comments