tags:

views:

923

answers:

8

Can somebody suggest a good tutorial on Git? I've found many simple guides with a plain web search, but I'm already very familiar with other version control systems and I'm looking for documentation on the internals.

+3  A: 

The Git cheat sheet is pretty good:

http://cheat.errtheblog.com/s/git

Cody Caughlan
+9  A: 

From the sounds of it, this should be exactly what you're looking for: Understanding Git Conceptually.

Chad Birch
That is a good introduction, but it doesn't discuss some key Git concepts such as the index. I recommend "Git from the bottom up" (see my answer below).
Greg Hewgill
+6  A: 

A good introduction to the concepts is Git for Computer Scientists.

I also found Git from the bottom up (PDF) very useful when I was first learning Git. That paper explains exactly how the Git internals work, including blobs, trees, the index, stashing, the reflog, etc.

Greg Hewgill
+2  A: 

I've found git's documentation page extremely useful, it includes talks by Linus.

stefanB
+4  A: 

If you google "git tutorial", the official tutorial is the first result. It's excellent.

I keep saying this, but I was (and still am) an absolute beginner when it comes to version control, yet I got up to speed with git and I can use it "effectively" (at least I think I do). It's practically my first version control tool! I've used svn a bit before but I find it very confusing, git made a lot more sense to me!

hasen j
+5  A: 

if you want to really dig git you need to understand how it works behind the scenes. try http://ftp.newartisans.com/pub/git.from.bottom.up.pdf I found it to be a good guide into inner working of git.

Vitaly Kushner
+12  A: 
Norman Ramsey
Or maybe people just feel like writing git tutorials ...
stefanB
There are certainly many explanations. But I've been struck by the git-to-mercurial tutorial ratio. I'm sure git's larger user base explains part of it, but you'd think there would have been enough git tutorials by, say, 2008. They keep coming...
Norman Ramsey
I wish I could up-vote your reply twice. Thanks.
fatcat1111
I just noticed this while looking for something else and one thing in this answer is completely *wrong*: "When you clone a repository, you don't clone all of its branches. Don't ask me why." That's simply not true -- the branches *are* cloned, you just don't automatically get local tracking copies of all of them. I do grant that this is somewhat mysterious -- I wrote a whole blog post about it.
ebneter
+2  A: 

In addition to the free Git from the bottom up tutorial I highly recommend the Git Internals PDF (US$9).

Pat Notz