Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade Git in Babun

Tags:

git

windows

babun

I have just installed:

https://github.com/babun/babun

in windows 8 but how do I upgrade Git to latest version?

It comes with

{ ~ } » git --version ~ git version 1.7.9

I did try:

 pact install git-2.0.4.tar

Where git-2.0.4.tar is located in the current directory. I also tried to copy it too /setup but I still get this error:

{ ~ }  »  pact install git-2.0.4.tar
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
setup.ini taken from the cache

Installing git-2.0.4.tar
Package git-2.0.4.tar not found or ambiguous name, exiting
like image 681
u123 Avatar asked Aug 13 '14 07:08

u123


People also ask

How do I update my Git software?

If you're using Git version 2.14.1 or older, you must uninstall Git first. After that, download and install Git on your Windows machine again. If you're running anything from 2.14.2 to 2.16.1, run git update on your command prompt. For version 2.16.1 and latest, use git update-git-for-windows instead.

What is the command to update Git?

Update your local repo from the central repo ( git pull upstream master ). Make edits, save, git add , and git commit all in your local repo. Push changes from local repo to your fork on github.com ( git push origin master ) Update the central repo from your fork ( Pull Request )

What is the latest Git version?

The latest version is 2.33.0, which was released about 1 year ago, on 2021-08-30.


2 Answers

Update your installation by using Cygwin installer:

  1. Download Cygwin installer from http://cygwin.com/setup-x86.exe
  2. Run the installer and use your .babun\cygwin directory (most likely C:\Users\your-username\.babun\cygwin) as the root install directory
  3. Click through the installer. By default, it upgrades all packages.

Reinstalling git might also work:

pact remove git
pact install git

Reinstallation is quicker, but the full Cygwin upgrade is safer because all the dependencies are also upgraded automatically.

like image 138
Juha Jokimäki Avatar answered Oct 07 '22 18:10

Juha Jokimäki


pact update git

Updated to the latest version of Git, 2.5.3, just now.

like image 45
gillytech Avatar answered Oct 07 '22 18:10

gillytech