How to install git credential manager core on Ubuntu 22.04 / 20.04

This will installĀ git credential manager core on Ubuntu 22.04 or Ubuntu 20.04

wget "https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.5.0/gcm-linux_amd64.2.5.0.deb" -O /tmp/gcmcore.deb
sudo dpkg -i /tmp/gcmcore.deb
git-credential-manager configure