My favorites | Sign in
Logo
                
Search
for
Updated Oct 26, 2009 by johannes.schindelin
UpdatingMSysGit  
How to update msysGit.

Introduction

Together with Git for Windows, the build environment msysGit advances, too. If you want to stay on top of those developments, just use Git itself.

Details

First of all, if you installed msysGit via the fullinstall package, you will have to run

/share/msysGit/initialize.sh

to put your setup into the same state as it would have been after running the netinstall.

After that, you will have to decide what you are interested in:

The Git submodule

Initially, the submodule will be checked out at the revision committed to the super project. If you want to stay up-to-date with the recent developments in 4msysgit (the msysGit specific fork of the official Git project), you need to set up a tracking branch for the devel branch:

cd /git
git checkout --track origin/devel

This only needs to be done once, all subsequent updates can be performed by

cd /git
git pull

(Of course, if you want to track master instead of devel, you have to adjust the commands appropriately.)

Note that there are several branches in 4msysgit.git; all branches except for master (the ultra-stable branch) and devel (the less stable, more current one) are subject to frequent rewinding and developments until they are either merged or scrapped.

The superproject

'''Note:''' Earlier installers did not set up the post-checkout hook which is necessary to be able to update the bash and msys-1.0.dll components; please check that you have a file /.git/hooks/post-checkout, and if it is missing, copy it from /share/msysGit/post-checkout-hook!

The build environment around Git for Windows is managed in the superproject (AKA msysGit itself). After installing it with the netinstall package (or converting a fullinstall into the same state), updating is just a matter of

cd /
git pull

By default, you are on the ''master'' branch, but you can follow the more current devel branch, too:

cd /
git checkout --track origin/devel

The same principle as for the branches of the Git submodule applies to the branches of the superproject msysGit.

The Git Cheetah submodule

As Git Cheetah is much more experimental than Git itself, its development is done directly on the master branch.

Please see GitCheetah for details.



Sign in to add a comment
Hosted by Google Code