WindowsInstall

From Git SCM Wiki
(Difference between revisions)
Jump to: navigation, search
(Talk)
(Talk)
Line 9: Line 9:
  
 
= Cygwin =
 
= Cygwin =
 +
 +
== Installation ==
  
 
You will need to install cygwin and the following packages to be able to build git:
 
You will need to install cygwin and the following packages to be able to build git:
Line 32: Line 34:
  
 
Check that your path includes ~/bin !
 
Check that your path includes ~/bin !
 +
 +
If want to be extra careful, you can always run the regression tests:
 +
<pre><nowiki>
 +
make test
 +
</nowiki></pre>
 +
 +
== Extra notes ==
 +
 +
* Use git on local NTFS disks -- Network drives and VFAT disks don't support the filesystem semantics GIT needs.
 +
* Be careful with the case in filenames. Similarly, avoid special chars in filenames.
 +
* Run git repack -a -d early and often. There are slowdowns with many unpacked objects.
 +
* As of version 1.4.x, export GIT_USE_RECUR_FOR_RECURSIVE=1 to replace Python-based git-merge-recursive with a much faster C implementation. Later versions will probably have the C version as default.
 +
* gitk has some pane layout problems. Try resizing the window. Try deleting your .gitk file.
 +
  
 
__NOTOC__
 
__NOTOC__

Revision as of 10:10, 7 September 2006

Currently GIT is only supported on Windows within a Cygwin environment. While this works well, there are several efforts that aim to provide a more native GIT on Windows.

These efforts are

  • EclipseIDE-based GIT client, based on a pure Java implmentation of GIT's internals.
  • A libgit + cygwin.dll Windows Explorer extension (perhaps based on TortoiseSVN)

Ask on the MailingLists for the latest news on this ;-)

Cygwin

Installation

You will need to install cygwin and the following packages to be able to build git:

  • rcs (for merge)
  • python (for merge-recursive, though merge-recur is a *huge* win)
  • wish (for gitk)
  • perl
  • ssh
  • openssl (and -dev)
  • zip (and -dev)
  • curl (and -dev)
  • expat (and -dev)
  • make
  • gcc
  • binutils (sorta necessary to compile!)

With these packages installed you build git and it in your ~/bin directory by doing:

make install

Check that your path includes ~/bin !

If want to be extra careful, you can always run the regression tests:

make test

Extra notes

  • Use git on local NTFS disks -- Network drives and VFAT disks don't support the filesystem semantics GIT needs.
  • Be careful with the case in filenames. Similarly, avoid special chars in filenames.
  • Run git repack -a -d early and often. There are slowdowns with many unpacked objects.
  • As of version 1.4.x, export GIT_USE_RECUR_FOR_RECURSIVE=1 to replace Python-based git-merge-recursive with a much faster C implementation. Later versions will probably have the C version as default.
  • gitk has some pane layout problems. Try resizing the window. Try deleting your .gitk file.


Personal tools