RtkDev:Git up to speed - A Git crashcourse
From RevTK
Contents |
Install Git
On MacOS and Unix-like systems, you can use Git through the default shell (Terminal on Mac OS X).
- Download Git for OS X
- Download GitX, a GUI for Git. Optional
On Windows you can use Git with MsysGit or Cygwin. MsysGit is a combination of Msys with Git. After installation, you can use a command window that supports a minimal set of POSIX commands such as ls, find, cat, sed, and so on. In particular, you will use the ssh command to generate a SSH key to authenticate your Github account.
- Download MsysGit. Get the "Full Installer" or the "Portable Application".
Learning Git: the Crash Course
Illustration by Oliver Steele Source article
The quick question and answer approach:
- Git for beginners on StackOverflow.com
A step-by-step guide to get you through all the basics in a short time:
- Print out this illustration (displayed on the right) by Oliver Steele (from this blog post). The illustration is very helpful to understand Git tutorials. Ignore the rest of the blog post for now, it is intermediate/advanced Git.
- Run through this Visual Git Tutorial by Ralf Ebert. This article runs you through all the basic Git commands for a local repository.
- A big draw of Git is of course the social coding site Github. At this point you may want to create your account on Github and follow their instructions.
- The best thing to do at this point is to get intimate with Git with Scott Chacon's Pro Git book. You can read chapters online, and maybe later buy the book from Apress. If you want to get up to speed for contributing via Git, here is a recommended chapter list:
- Chapter 2: Git Basics
- Chapter 3: Git Branching
- Section 5.2: Contributing to a project "Commit Guidelines" and "Public Small Project"
- Section 7.1: Git Configuration
Git Tools
- Typing "gitk" once in a while on the command line is very handy as it displays a visual graph of the branches in the current project.
- There is a very nice Git GUI on Mac OS called GitX. After installing select "Enable Terminal Usage..." from the GitX main menu. This will allow you to type "gitx" on the command line in addition to the default "gitk".
- There is an Eclipse plugin in "incubation" phase at Eclipse.org, called EGit. Also see Eclipse plugin Slideshare.
- TortoiseGit promises to provide the same level of convenience and a similar environment than TortoiseSVN.
- SmartGit.
- Git Graphical Interfaces showdown
Links
Tutorials
- Windows Git Tutorial: Cygwin, SSH and Projectlocker
- Visual Git Tutorial [1]
- Git - SVN crash course [2]
- EGit - Git with Eclipse Tutorial [3]
Cheatsheets
- Illustration of Git Data Transport Commands [4]
- Git cheat sheet (printable monospaced, ~6-7 pages).
- A Practical Git GUIDE
References
- Pro Git (online and in book form from Apress) [5]
- Git Internals PDF (recommendation: skip the 9$ download and get the 23$ book, which is newer)
- learn.github.com - The Github Learning site
- Gitcasts [6]
- Git ready [7]
- Why you should use Git - DVCS vs. CVCS [8]
Technical & How To's
