DEV Community

Farghly Ahmed
Farghly Ahmed

Posted on

Update git via cmd

If you want to update git to last version you don’t need to download it website and install again to update it.

You can easily update it from terminal.

For windows users write from terminal

git update-git-for-windows
Enter fullscreen mode Exit fullscreen mode

Second on linux , open terminal and write this commands

 sudo add-apt-repository ppa:git-core/ppa -y

sudo apt-get update

sudo apt-get install git -y
Enter fullscreen mode Exit fullscreen mode

After installing it show version of git

git --version
Enter fullscreen mode Exit fullscreen mode

Resource link: https://stackoverflow.com/a/66514714/5661396

Top comments (0)