update git via cmd?

testing picture testing · Mar 14, 2019 · Viewed 10k times · Source

I recently updated my Git Extension to 3.0.2.5232 and now my git is no longer supported. When I run:

git --version 

I get

 git version 2.9.0.windows.1

However, I can't just download the latest version of git online because I can't run an .exe installer due to admin rights and what not, so is there a command I can run to upgrade directly from admin cmd?

Answer

mindmaster picture mindmaster · Mar 14, 2019

Yes there is.

Use the command:git update-git-for-windows in your cmd and press Y and will update it.

Example:

enter image description here

PS: I don't have any admin control. It's my company computer, so you should be able to update it too