How to install git-credential-manager core without sudo
This will install the Git Credential Manager Core without requiring sudo
access. It will be installed to $HOME/usr/bin
and $HOME/usr/lib
.
Ensure that $HOME/usr/bin
is in your $PATH
and $HOME/usr/lib
is in your $LD_LIBRARY_PATH
.
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.0/gcm-linux_amd64.2.6.0.tar.gz
tar xzvf gcm-linux_amd64.2.6.0.tar.gz
# Create directories if they don't exist
mkdir -p $HOME/usr/bin
mkdir -p $HOME/usr/lib
# Move files to appropriate directories
mv git-credential-manager $HOME/usr/bin/
mv libHarfBuzzSharp.so $HOME/usr/lib/
mv libSkiaSharp.so $HOME/usr/lib/
Now you can let the Git Credential Manager Core configure itself:
$HOME/usr/bin/git-credential-manager configure
Example output:
Configuring component 'Git Credential Manager'...
Configuring component 'Azure Repos provider'...