- Update Git
brew upgrade git
Check it worked
- Check the version
git --version
- Add the Git team's package sourceNeeds sudo
sudo add-apt-repository -y ppa:git-core/ppaUbuntu's own Git is often a few versions behind.
- Update GitNeeds sudo
sudo apt update && sudo apt install -y git
Check it worked
- Check the version
git --version
- Update Git
git update-git-for-windowsOr: winget upgrade --id Git.Git -e
Check it worked
- Check the version
git --version