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