-
Star
(275)
You must be signed in to star a gist -
Fork
(67)
You must be signed in to fork a gist
-
-
Save YuMS/6d7639480b17523f6f01490f285da509 to your computer and use it in GitHub Desktop.
#!/bin/bash | |
sudo add-apt-repository -y ppa:git-core/ppa | |
sudo apt-get update | |
sudo apt-get install git -y |
Thanks
Thank you. This is Worked
Thank you! Work on Lubuntu 22.04
I am quite new to using Linux and I came across these commands while searching for "updating git ubuntu". Now I want to know exactly what these lines do? espicially this one -> sudo add-apt-repository -y ppa:git-core/ppa this probably updates everything in the repository (sudo apt-get update) [correct me if I am wrong pretty please] sudo apt-get install git -y (not sure what the -y flag does here)
Local Ubuntu adds (= subscribe or register the link of) the external repository as a library of packages it can (automatically) download and list up latest version for further updates.
You are adding the repository that contains the git package to your local ubuntu machine to do this subscription.
Now then, you do apt-get update, then you get the news that the git in that repo has the new version.
Lastly, you download it with apt-get install git.
Thank you.
thanks.
Thanks man!!
Still works! Thanks
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)
Thaks, from me, too!
Thank you for your sharing !!
Working! ❤️️
git --version
git version 2.43.2
Ubuntu 20.04 focal
Thanks.
thanks a bunch!
perfect, thank you
This always works even after 15 years.
Thanks a lot
Many thanks
Thanks you