News for hackers. Stuff that matters.
Re:Git Tutorials for Beginners by spacemanaki on Wednesday June 08, 2011 @01:53PM (#2634198)
A few great resources are missing from that big list at the bottom:

Git internals PDF (Scott Chacon) http://peepcode.com/products/git-internals-pdf

"Getting Git" screencast (Scott Chacon) http://blip.tv/scott-chacon/git-talk-4113729

Interactive Git cheatsheet (Andrew Peterson, NDP Software) http://www.ndpsoftware.com/git-cheatsheet.html

Re:Git Tutorials for Beginners by dave1010uk on Thursday June 09, 2011 @02:35AM (#2636246)
The best resource for understanding git (or probably bzr/Mercurial) IMO is definitely "The Git Parable" [1]. It takes you through the steps of what you'd do to create a DVCS. This teaches you the concepts, without worrying about the commandline.

Once you understand git, the man pages, docs at kernel.org and cheatsheets are a much easier read. My go-to cheatsheet is now [2], which is actually more of a visualization of commands to use to move between git's different areas.

I must admit, I still need to Google every now and then for things that are counterintuative in git (e.g. removing a submodule) and normally end up on StackOverflow.

[1] http://tom.preston-werner.com/2009/05/19/the-git-parable.htm...

[2] http://ndpsoftware.com/git-cheatsheet.html

Re:Git Tutorials for Beginners by iki23 on Sunday June 12, 2011 @05:54AM (#2646194)
Re:Git Tutorials for Beginners by igorgue on Wednesday June 08, 2011 @01:58PM (#2634220)
I loved the "Git Internals" PDF by Scott Chacon (github) probably not targeted for "Beginners" but a good read nonetheless.
Re:Git Tutorials for Beginners by Wickk on Wednesday June 08, 2011 @02:38PM (#2634419)
I learned a lot from the Getting Git screencast when I learned how to use it, +1 from me
Re:Git Tutorials for Beginners by staktrace on Wednesday June 08, 2011 @02:04PM (#2634248)
To me the single best resource for really building a mental model of git (and not just learning how to do a handful of 'cookbook' actions) is the git user manual: http://www.kernel.org/pub/software/scm/git/docs/user-manual....

Once I read that, I never had to look at any git intro tutorials again.

Re:Git Tutorials for Beginners by DrHankPym on Wednesday June 08, 2011 @02:43PM (#2634448)
What really helped me understand Git was this 2-part tutorial that uses Gitk to show how your commits and merges work.

Part 1 - http://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-...

Part 2 - http://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-...

I'm surprised how few tutorials mention Gitk.

Re:Git Tutorials for Beginners by cpeterso on Wednesday June 08, 2011 @07:24PM (#2635399)
Beyond git tutorials, I recommend easygit (eg). It's a "training wheels" wrapper for git and available in Ubuntu's Package Manager.

http://people.gnome.org/~newren/eg/

easygit is git with sane defaults and better error messages. It uses real git commands, so you don't need to unlearn anything when graduating to git. It has extra sanity checks (like checking for unstaged changes when committing). The help messages are more verbose and use more consistent terminology than git's man pages. For example, easygit always uses the term "staged" instead of "index/staged/add/hard/soft/mixed/cached/HEAD/etc." And `eg revert` behaves the same as Perforce, SVN, and Mercurial revert.

Re:Git Tutorials for Beginners by akent on Thursday June 09, 2011 @12:20AM (#2635954)
The overloading of "checkout" to mean revert a file as well as "switch to a different branch" is for me one of the most confusing git design choices.
Re:Git Tutorials for Beginners by mkilling on Thursday June 09, 2011 @01:36AM (#2636133)
1. You're right, it's confusing when coming from a Subversion background. 2. It makes sense when you realize that 'switching to a different branch' and 'reverting a file' are both operations that make your working copy (partly) match a branch, be it a different branch or just your current HEAD. Git is full of stuff like that. Once you get the fundamentals down it all starts to make sense.
Re:Git Tutorials for Beginners by tjogin on Thursday June 09, 2011 @02:32AM (#2636241)
It's a poor UI even for people like me who have never used SVN. Understanding how something works after having learned it is not a sign of a good UI, a good UI facilitates easy learning by having commands do the thing you'd expect them to do, so far as that is possible.

The fact that file checkouts and branch creation shares underlying mechanics have nothing to do with the UI, it'd make a lot more sense to create new branches with for instance the git branch command, and checkout files with the git checkout command.

Having said that, I don't think the git UI is horrible at all. I found learning the basics of git rather easy, that doesn't mean the UI can't be improved on further, though.

Re:Git Tutorials for Beginners by cpeterso on Thursday June 09, 2011 @06:27PM (#2639020)
> 'switching to a different branch' and 'reverting a file' are both operations that make your working copy (partly) match a branch

git revert is the "undo committed change" command.

git reset is the "discard uncommitted change" command (what is called "revert" by Subversion, Mercurial, Perforce, Bazaar, Darcs, Fossil, and SVK).

Re:Git Tutorials for Beginners by kennystone on Wednesday June 08, 2011 @07:33PM (#2635423)
'Pro Git' is a fine resource, but it is pretty intense for beginners. When I started, I just wanted to check something in. I've found the 'Pragmatic Guide to Git' to be the best reference for getting things done. It has a fantastic organization that sends you exactly where you need to go and lots of examples to perform the most common tasks.
Re:Git Tutorials for Beginners by john2x on Wednesday June 08, 2011 @02:48PM (#2634476)
A similar list for Mercurial, please?
Re:Git Tutorials for Beginners by gomer on Wednesday June 08, 2011 @03:13PM (#2634594)
Re:Git Tutorials for Beginners by iki23 on Sunday June 12, 2011 @05:55AM (#2646198)
http://mercurial.selenic.com/ ... intro, man, howto, wiki http://devcheatsheet.com/tag/mercurail/ ... some visuals
Re:Git Tutorials for Beginners by baha_man on Wednesday June 08, 2011 @08:10PM (#2635503)
Re:Git Tutorials for Beginners by Hawramani on Wednesday June 08, 2011 @03:08PM (#2634569)
Has anyone read Apress's Pro Git by Scott Chacon? Do you recommend it?
Re:Git Tutorials for Beginners by Aga on Wednesday June 08, 2011 @04:24PM (#2634866)
I absolutely recommend it! It's great. Read it online from the link provided by the comment below or buy the book, what ever suits you best.

I also recommend to heavily use gitk while learning, just use it to see what happens after you do something in your test repositories. It's very enlightening.

Re:Git Tutorials for Beginners by alinajaf on Wednesday June 08, 2011 @03:20PM (#2634621)
You mean the one available for free here: http://progit.org/ ?
Re:Git Tutorials for Beginners by mkilling on Thursday June 09, 2011 @01:38AM (#2636135)
Best Git book by far IMHO
Re:Git Tutorials for Beginners by sagarun on Thursday June 09, 2011 @03:40AM (#2636341)
"di-git-ally managing love letters" http://shakthimaan.com/downloads/glv/presentations/di-git-al... . I started using git reading it.
Re:Git Tutorials for Beginners by timfl on Thursday June 09, 2011 @02:01PM (#2638068)
http://www.gitguys.com is a new resource for people wanting to learn git. It has lots of diagrams that step through changes in the index, working directory, git object store, etc.
Re:Git Tutorials for Beginners by decadentcactus on Wednesday June 08, 2011 @11:22PM (#2635848)
I've been working through git immersion the past few days and it's definitely helped a lot. Short exercises to teach basic things.
Re:Git Tutorials for Beginners by neuroelectronic on Wednesday June 08, 2011 @03:11PM (#2634586)
Why would anyone want 10 tutorials?
Re:Git Tutorials for Beginners by skimbrel on Wednesday June 08, 2011 @03:23PM (#2634632)
To find the one that helps them the most? Not everyone learns in the same way, and not everyone teaches in the same way. The more choices you have, the more likely you are to hit on the one that lets you really grok something.
Re:Git Tutorials for Beginners by lhnn on Thursday June 09, 2011 @12:27AM (#2635971)
Since there is no bookmark feature, "Tag"
Re:Git Tutorials for Beginners by LTC on Thursday June 09, 2011 @03:50AM (#2636354)
cool