https://public.kitware.com/Wiki/api.php?action=feedcontributions&user=Yvesber&feedformat=atomKitwarePublic - User contributions [en]2024-03-28T22:15:31ZUser contributionsMediaWiki 1.38.6https://public.kitware.com/Wiki/index.php?title=Git/Download&diff=53973Git/Download2013-08-28T12:34:19Z<p>Yvesber: /* MSysGit */ updated to current revision of the Git download</p>
<hr />
<div>==Generic==<br />
<br />
Visit the main Git [http://www.git-scm.com/download download site].<br />
<br />
==Windows==<br />
<br />
Git comes in two flavors on Windows:<br />
<br />
* A Windows native application installer<br />
* A Cygwin package<br />
<br />
Choose one and stick with it.<br />
They do not get along well in a given work tree on disk<br />
(the repository formats are compatible but the "stat cache" of the work tree is not unless <code>core.filemode</code> is <code>false</code>).<br />
<br />
===MSysGit===<br />
<br />
Download the "Full installer for official Git" from [http://code.google.com/p/msysgit/downloads/list here]. You want to download the file that is named something like<br />
<br />
Git-1.8.3-preview20130601.exe<br />
''If you notice that the filename has changed (because a new version was released or something similar), please update this wiki!''<br />
<br />
Run the installer. When prompted, choose to ''not'' modify the <code>PATH</code> and choose the <code>core.autocrlf=true</code> option.<br />
Launch the "Git Bash" tool to get a command line shell with Git.<br />
<br />
===Cygwin===<br />
<br />
Install packages:<br />
<br />
* '''git''': Git command-line tool<br />
* '''gitk''': Graphical history browser<br />
* '''git-completion''': Bash shell completion rules<br />
<br />
Launch a Cygwin command prompt to get a command line shell with Git.<br />
<br />
==Mac==<br />
<br />
===Xcode 4===<br />
<br />
If you have Xcode 4 installed, you already have git installed.<br />
<br />
Verify with:<br />
<br />
$ which git<br />
/usr/bin/git<br />
<br />
$ git --version<br />
git version 1.7.4.4<br />
<br />
===OS X Installer===<br />
<br />
Download an installer from [http://code.google.com/p/git-osx-installer/ here].<br />
<br />
===MacPorts===<br />
<br />
Enter these commands:<br />
<br />
$ sudo port selfupdate<br />
$ sudo port install git-core +doc<br />
<br />
==Linux==<br />
<br />
Popular Linux distributions already come with packages for Git.<br />
Typically the packages are called:<br />
<br />
* '''git-core''': Git command-line tool<br />
* '''git-doc''': Git documentation<br />
* '''gitk''': Graphical history browser</div>Yvesber