Skip to content
This repository

Build environment for Git for Windows. Please post all patches to the msysGit mailing list.

branch: master
Octocat-spinner-32 bin Add a script to list the download statistics for Git for Windows April 15, 2014
Octocat-spinner-32 cmd fix typo April 14, 2014
Octocat-spinner-32 doc Commit submodules in preparation for 1.9.2 April 11, 2014
Octocat-spinner-32 etc Delete oboslete etc/ssh_known_hosts2 December 30, 2013
Octocat-spinner-32 git @ d0859cc Commit submodules in preparation for 1.9.2 April 11, 2014
Octocat-spinner-32 include MSYS: Add flex-2.5.35-1-msys-1.0.11-bin.tar.lzma March 25, 2010
Octocat-spinner-32 lib Perl readline creates empty sys$command files if no STDIN is connected January 02, 2014
Octocat-spinner-32 libexec Switch to new 'libexec/git-core' directory layout July 26, 2008
Octocat-spinner-32 mingw Install zlib-1.2.8.tar.gz February 23, 2014
Octocat-spinner-32 share Installer: Fix a typo April 13, 2014
Octocat-spinner-32 src Commit submodules in preparation for 1.9.2 April 11, 2014
Octocat-spinner-32 ssl Added MSys' openssl. February 20, 2008
Octocat-spinner-32 .gitattributes .gitattributes: make sure /etc/termcap has unix line-endings March 22, 2009
Octocat-spinner-32 .gitignore Add the .vagrant/ directory to the .gitignore file January 28, 2014
Octocat-spinner-32 .gitmodules Make hacking on Git using an msysGit installer more firewall-friendly October 22, 2012
Octocat-spinner-32 README.md Aargh. Forgot one more obsolete URL February 25, 2014
Octocat-spinner-32 THIS_IS_MSYSGIT Explain why we need the THIS_IS_MSYSGIT file October 03, 2012
Octocat-spinner-32 Vagrantfile Add a Vagrantfile January 28, 2014
Octocat-spinner-32 git-cmd.bat fix another typo April 14, 2014
Octocat-spinner-32 msys.bat msys: added setlocal to keep variables in subshell September 05, 2013
Octocat-spinner-32 wine-start.sh wine-start: avoid going through msys.bat September 09, 2011
README.md

Build environment for Git for Windows

This is the build environment -- also known as msysGit -- for Git for Windows.

The easiest way is to install it via the net installer. This installer will clone our two repositories, including all the necessary components to build Git for Windows, and perform an initial build.

The build environment

msysGit brings a few components that are required to build Git:

  • Bash, a Unix-type command-line shell. Quite a few components of Git itself are still shell scripts. Therefore, Bash is required to execute Git commands (see the output of cd /git && git ls-files \*.sh for a full list).
  • the GNU C Compiler. Since we try to rely only on free software (apart from the Operating System, of course), we think it makes more sense to rely on GCC than on Visual Studio express. Also, it makes the maintenance burden lighter, as upstream Git also targets mainly GCC.
  • GNU Make.
  • Perl. Still required for a couple of Git components (see the output of cd /git && git ls-files \*.perl), most notably git svn.
  • Tcl/Tk, a scripting language making it easy to implement cross-platform graphical user interfaces. We need this for gitk and git gui.
  • cURL, a library implementing HTTP and FTP transport.
  • many more libraries.
  • some Unix programs required by the shell scripts in Git.

The relationship between msysGit and Git for Windows

Git for Windows is the software package that installs a minimal environment to run Git on Windows. It comes with a Bash (a Unix-type shell), with a Perl interpreter and with the Git executable and its dependencies.

On the other hand, msysGit is the software package installing the build environment that can build Git for Windows. The easiest way is to install it via the net installer.

The difference between MSys and MinGW

The MinGW project's goal is to provide a way to compile native Windows binaries with no POSIX layer using the GNU C Compiler.

However, at least the Bash needs a POSIX layer (most notably due to the absence of the fork() call on Windows). Therefore, MSys (the minimal system) is thrown in, offering the minimal system necessary to offer Bash (and Perl) functionality on Windows.

Consequently, MSys ships with a POSIX layer (based on an old version of Cygwin) that is only used by the Bash and Perl, but not by anything compiled within that environment.

Further information

For more information and documentation, please have a look and enhance our Wiki.

For code contributions and discussions, please see our mailing list.

Something went wrong with that request. Please try again.