-
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 |
Already done ✔️ Tks!
Just what I was looking for. Thanks!
Thanks. Still working smoothly after 7 years.
WSL 2, Ubuntu 18.04, 04.2023
Still working, thanks.
Tried to run on Ubuntu 16.4 but getting below message,
The following packages have unmet dependencies: git : Depends: libpcre2-8-0 but it is not going to be installed Depends: git-man (> 1:2.41.0) but 1:2.7.4-0ubuntu1.9 is to be installed google-chrome-stable : Depends: libu2f-udev but it is not installable Depends: libvulkan1 but it is not going to be installed zoom : Depends: libxcb-xinerama0 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
works well
Thank you very much!
Thank you
Thank you!!!
Oh Thanks!
Thanks you
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
Works like a charm, thanks!