Difference between revisions of "Git/Download"
Jhlegarreta (talk | contribs) (Add the historical label after Change-Id: I5b79451da962c95614c65e09679bc8b5c12b6dea was merged) |
|||
(8 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ Historical }} | |||
==Generic== | ==Generic== | ||
Line 12: | Line 14: | ||
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]. You want to download the file that is named something like | 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. | |||
Git-1.8.3-preview20130601.exe | |||
''If you notice that the filename has changed (because a new version was released or something similar), please update this wiki!'' | ''If you notice that the filename has changed (because a new version was released or something similar), please update this wiki!'' | ||
Line 34: | Line 37: | ||
==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=== |
Latest revision as of 20:55, 5 February 2018
![]() | {{#switch:|User|User talk=This user {{#ifeq:Git|Git/Download||sub}}page is currently inactive and is retained for historical reference. {{#if: |It was last updated {{{last}}}.}} If you want to revive discussion regarding the subject, you might try contacting the user in question or seeking broader input via a forum such as the village pump.|#default={{#switch:{{{type}}}|policy=This former Wikipedia policy, no longer backed by community consensus, is retained for historical reference.|guideline=This former Wikipedia guideline, no longer backed by community consensus, is retained for historical reference.| |section=This section is currently out-of-date and may contain errors but is retained for historical reference. {{#if: || For peer-reviewed, authoritative guidance on ITK, see The ITK Software Guide.. Additional guidance can be found via the mailing lists.}} |woundup=This page has been closed down by community consensus, and is retained only for historical reference. For peer-reviewed, authoritative guidance on ITK, see The ITK Software Guide. If you wish to restart discussion on the status of this page, seek community input via the mailing lists].|#default=This section is currently out-of-date and may contain errors but is retained for historical reference. {{#if: || For peer-reviewed, authoritative guidance on ITK, see The ITK Software Guide. Additional guidance can be found via the ITK Discourse.}}}} {{#if: |{{{comment}}}|}} {{#if: |It was last updated {{{last}}}.}} }} | {{#if: | {{#if:
| {{#ifexist: | | }}}} }} |
{{#switch:|User|User talk=|#default={{#ifeq:{{{category}}}|no||}}}}
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.8.3-preview20130601.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