Skip to content

Instantly share code, notes, and snippets.

@YuMS
Created June 29, 2016 09:28
Show Gist options
  • Save YuMS/6d7639480b17523f6f01490f285da509 to your computer and use it in GitHub Desktop.
Save YuMS/6d7639480b17523f6f01490f285da509 to your computer and use it in GitHub Desktop.
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y
@etherblitzdev
Copy link

Works like a charm :-)

git --version
git version 2.43.2

even with prior installed:

gh version
gh version 2.46.0 (2024-03-20)

@under-script
Copy link

Thaks, from me, too!

@pheasa-dev
Copy link

Thank you for your sharing !!

@cristianjs19
Copy link

cristianjs19 commented Apr 21, 2024

Working! ❤️️
git --version
git version 2.43.2
Ubuntu 20.04 focal

@Kerem723
Copy link

Thanks.

@eignatyev
Copy link

thanks a bunch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment