Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

update git via cmd?

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?

like image 532
testing Avatar asked Mar 14 '19 13:03

testing


People also ask

How do I update my Git software?

Download the installation file from the Git website. Run the installation and follow the install wizard to update Git to the latest version. Note: Using the install wizard to update Git overwrites the current installation.

What is Git update command?

If you have already installed Git, you can update Git with the command. git update-git-for-windows. to know the current version, use: git --version. You can run these commands in the cmd prompt .


1 Answers

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

like image 148
mindmaster Avatar answered Oct 24 '22 20:10

mindmaster