PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/workbook/markdown/04-Setting_Up_Git.md

http://github.com/matthewmccullough/git-workshop
Markdown | 43 lines | 30 code | 13 blank | 0 comment | 0 complexity | 8e43026e9bc3d12692179aad585dd5dc MD5 | raw file
 1# Setting up Git
 2
 3## Get binaries
 4
 5### On UNIX
 6
 7  * Compiling from Source
 8    * [Web UI to browse source](http://git.kernel.org/?p=git/git.git;a=summary)
 9    * Git repo for source: `git://git.kernel.org/pub/scm/git/git.git`
10    * Zipped source packages: `http://kernel.org/pub/software/scm/git/`
11    * Run `make`
12    * Then run `make install`
13  * Binaries from a Package manager
14    * `apt-get git-core`
15    * `apt-get git-gui`
16    * `apt-get git-doc`
17    * `apt-get git-svn`
18
19### On Mac
20
21  * [MacPorts](http://www.macports.org/) (user-compiled)
22  * [HomeBrew](http://github.com/mxcl/homebrew) (user-compiled)
23  * [git-osx-installer](http://code.google.com/p/git-osx-installer/) (precompiled)
24
25### On Windows
26
27  * Two [msysGit](http://code.google.com/p/msysgit/) choices: a full toolkit, or just a precompiled distribution.
28  * [Precompiled](http://msysgit.googlecode.com/files/Git-1.7.3.1-preview20101002.exe) is named "Git-XXXexe"
29  * [Full toolkit](http://msysgit.googlecode.com/files/msysGit-fullinstall-1.7.3.1-preview20101002.exe) with gcc compiler is named "msysGit-fullinstall-XXX.exe"
30  
31If you get stuck, a series of [help pages at GitHub](http://help.github.com/) are almost certain to assist.
32
33
34## Configuring your Git username and email address
35Establish the one-time parameters stored in your home directory:
36
37    git config --global user.name "Your Name"
38    git config --global user.email "you@example.com"
39    git config --global color.ui "auto"
40
41View our handiwork
42
43    echo ~/.gitconfig