News for hackers. Stuff that matters.
Re:Git: the minimum you need to know (sorta like a cheat or ... by dabeeeenster on Sunday August 24, 2008 @05:46PM (#285427)
Can anyone explain to me, someone who manages a small (< 10) team of developers with an SVN repository, why I need git?
Re:Git: the minimum you need to know (sorta like a cheat or ... by orib on Sunday August 24, 2008 @05:58PM (#285438)
Better workflow.

There are tons of times I want to try something locally without affecting the main repository. It hurts trying to keep uncommitted experimental changes from messing up local upstream, while still switching back to the old code to fix a bug that affects everybody. With git's local branches, rebasing, and fast branch switching, it's easy to keep your local, not-yet-ready changes in a branch, and fix bugs on master, for example.

Allowing other people to pull your changes directly from your repository for testing, without committing it, is also a big plus. "Hey, I have this fix that I want to test before I commit it. Can you pull tag omg-git-is-awesome from my machine and test it to make sure I didn't mess things up?"

Overall, DVCS just fits better with the way I work. Note, pretty much any DVCS will give you similar advantages. Git's just nice because it feels fast, and I'm just comfortable with it. Plus, stuff like rebase and bisect are sweet.

Re:Git: the minimum you need to know (sorta like a cheat or ... by dabeeeenster on Sunday August 24, 2008 @06:43PM (#285470)
Thanks.

Actually browsing around I found this very useful:

http://git.or.cz/course/svn.html

Re:Git: the minimum you need to know (sorta like a cheat or ... by gtani on Sunday August 24, 2008 @09:58PM (#285562)
http://wincent.com/a/about/wincent/weblog/archives/2007/07/g...

short and sweet: no metadata

http://www.newartisans.com/blog_files/diving.into.git.php

http://www.simplisticcomplexity.com/2008/03/05/cleanly-migra...

You used to be able to call "git", no options, it would tell you how many commands it has. "wc" says 140!

Re:Git: the minimum you need to know (sorta like a cheat or ... by DarkShikari on Sunday August 24, 2008 @07:05PM (#285480)
From a post of mine a while back on this topic:

1. I can commit things locally before committing them to the main repository. This allows me to commit something in a manner that separates it from all future changes, but test it for a few more days in future development before I actually push it to the main repository.

2. I can correct past commits. This means I don't have to clutter up the history with "fix typo"; I can just amend the previous commit. Obviously this isn't useful for stuff far back, but if I commit something and 2 minutes later someone points out a typo, I can fix it. A messy history makes development and bugfinding harder; git helps avoid it.

3. Git diff is formatted a bit more nicely than svn diff, IMO.

Re:Git: the minimum you need to know (sorta like a cheat or ... by pjhyett on Sunday August 24, 2008 @05:58PM (#285439)
Re:Git: the minimum you need to know (sorta like a cheat or ... by bootload on Sunday August 24, 2008 @08:57PM (#285537)
"... Can anyone explain to me, someone who manages a small (< 10) team of developers with an SVN repository, why I need git? ..."

You don't.

For revision control you can use CVS, SVN or VSS if your tastes include MS. Git was born out problems with the Linus, "the Git's" attempt to adopt BitKeeper for the Linux kernel ~ http://en.wikipedia.org/wiki/BitKeeper The only reasons I can think using Git would be if you are using Rails, developing OLPC or hacking on kernels.

The rules change of course if you are an individual hacker or a new startup as more and more software uses git. Plus you can use github.