Difference between revisions of "Git/Download"

From KitwarePublic
< Git
Jump to: navigation, search
(General)
m (Reverted edits by 23.19.44.233 (talk) to last revision by 129.49.7.198)
(9 intermediate revisions by 6 users not shown)
Line 12: Line 12:
 
Choose one and stick with it.
 
Choose one and stick with it.
 
They do not get along well in a given work tree on disk
 
They do not get along well in a given work tree on disk
(the repository formats are compatible but the "stat cache" of the work tree is not).
+
(the repository formats are compatible but the "stat cache" of the work tree is not unless <code>core.filemode</code> is <code>false</code>).
  
 
===MSysGit===
 
===MSysGit===
  
Download the "Full installer for official Git" from [http://code.google.com/p/msysgit/downloads/list here].
+
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
 +
 +
Git-1.7.10-preview20120409.exe
 +
''If you notice that the filename has changed (because a new version was released or something similar), please update this wiki!''
 +
 
 
Run the installer.  When prompted, choose to ''not'' modify the <code>PATH</code> and choose the <code>core.autocrlf=true</code> option.
 
Run the installer.  When prompted, choose to ''not'' modify the <code>PATH</code> and choose the <code>core.autocrlf=true</code> option.
 
Launch the "Git Bash" tool to get a command line shell with Git.
 
Launch the "Git Bash" tool to get a command line shell with Git.
Line 31: Line 35:
  
 
==Mac==
 
==Mac==
 +
 +
===Xcode 4===
 +
 +
If you have Xcode 4 installed, you already have git installed.
 +
 +
Verify with:
 +
 +
$ which git
 +
/usr/bin/git
 +
 +
$ git --version
 +
git version 1.7.4.4
  
 
===OS X Installer===
 
===OS X Installer===
Line 45: Line 61:
 
==Linux==
 
==Linux==
  
Populer Linux distributions already come with packages for Git.
+
Popular Linux distributions already come with packages for Git.
 
Typically the packages are called:
 
Typically the packages are called:
  

Revision as of 09:25, 19 June 2012

Generic

Visit the main Git download site.

Windows

Git comes in two flavors on Windows:

  • A Windows native application installer
  • A Cygwin package

Choose one and stick with it. They do not get along well in a given work tree on disk (the repository formats are compatible but the "stat cache" of the work tree is not unless core.filemode is false).

MSysGit

Download the "Full installer for official Git" from here. You want to download the file that is named something like

Git-1.7.10-preview20120409.exe

If you notice that the filename has changed (because a new version was released or something similar), please update this wiki!

Run the installer. When prompted, choose to not modify the PATH and choose the core.autocrlf=true option. Launch the "Git Bash" tool to get a command line shell with Git.

Cygwin

Install packages:

  • git: Git command-line tool
  • gitk: Graphical history browser
  • git-completion: Bash shell completion rules

Launch a Cygwin command prompt to get a command line shell with Git.

Mac

Xcode 4

If you have Xcode 4 installed, you already have git installed.

Verify with:

$ which git
/usr/bin/git
$ git --version
git version 1.7.4.4

OS X Installer

Download an installer from here.

MacPorts

Enter these commands:

$ sudo port selfupdate
$ sudo port install git-core +doc

Linux

Popular Linux distributions already come with packages for Git. Typically the packages are called:

  • git-core: Git command-line tool
  • git-doc: Git documentation
  • gitk: Graphical history browser