The version of msysGit that ships with GitHub for Windows
Перейти к файлу
Johannes Schindelin fd0d8400e3 vimtutor: avoid warning due to Windows' lack of mktemp
This is the quickest way to avoid those warnings, and this developer deems
that good enough a work around.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2014-06-20 10:11:30 -05:00
bin vimtutor: avoid warning due to Windows' lack of mktemp 2014-06-20 10:11:30 -05:00
cmd fix typo 2014-04-14 14:43:08 -07:00
doc Commit submodules in preparation for 1.9.2 2014-04-11 14:36:37 -05:00
etc Delete oboslete etc/ssh_known_hosts2 2013-12-30 21:02:16 +01:00
git@ad8112c026 Commit submodules in preparation for 1.9.4 2014-06-11 20:24:52 +02:00
include MSYS: Add flex-2.5.35-1-msys-1.0.11-bin.tar.lzma 2010-03-25 13:03:26 +01:00
lib Revert "perl: make File::Spec treat msys as Window" 2014-04-15 22:27:40 +02:00
libexec Switch to new 'libexec/git-core' directory layout 2008-07-26 12:02:24 +02:00
mingw Install OpenSSL 0.9.8za header files 2014-06-05 17:34:35 +02:00
share openssl: there can only be one 2014-06-13 11:39:11 +02:00
src Increase the RSS feed limit 2014-06-10 18:13:45 +02:00
ssl Added MSys' openssl. 2008-02-20 13:42:58 +00:00
.gitattributes .gitattributes: make sure /etc/termcap has unix line-endings 2009-03-22 14:40:59 +01:00
.gitignore Add the .vagrant/ directory to the .gitignore file 2014-01-28 12:23:03 -06:00
.gitmodules Make hacking on Git using an msysGit installer more firewall-friendly 2012-10-22 23:40:22 +01:00
README.md Aargh. Forgot one more obsolete URL 2014-02-25 08:40:50 -06:00
THIS_IS_MSYSGIT Explain why we need the THIS_IS_MSYSGIT file 2012-10-03 17:48:45 +02:00
Vagrantfile Add a Vagrantfile 2014-01-28 12:00:55 -06:00
git-cmd.bat fix another typo 2014-04-14 14:43:45 -07:00
msys.bat msys: added setlocal to keep variables in subshell 2013-09-05 20:22:42 +01:00
wine-start.sh wine-start: avoid going through msys.bat 2011-09-09 15:56:54 -05:00

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.