Skip to content

Instantly share code, notes, and snippets.

@mrluisfer
Created September 15, 2021 04:17
Show Gist options
  • Save mrluisfer/15f902bc95659e1b77f605ad22d8d16e to your computer and use it in GitHub Desktop.
Save mrluisfer/15f902bc95659e1b77f605ad22d8d16e to your computer and use it in GitHub Desktop.
Install the latest version of Git on Ubuntu-based distributions ๐ŸŒฟ
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y
git --version
# If your system doesn't have add-apt-repository, you can install it via:
sudo apt-get install python-software-properties software-properties-common
# To update git on Ubuntu 12.04 just follow this line of commands:
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git -y
git --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment