Git in Three Hundred Words

Just recently there was an article posted to Hacker News titled Git in six hundred words, which went over the basics of git. If you’re relatively new to git, it’s definitely worth a read.

I’ve been using git as my version control system for the past few years, and I’ve fallen in love with it. It’s simple, powerful, and easy to learn. If you get into a snag, there’s plenty of help available.

Not to mention GitHub, which, at 9 million users, is the largest code hoster in the world. I host my open source library on it, and use GitHub Enterprise for work.

If you’re just getting into software development and you’re looking for a version control system, I believe git is your best bet. With GitHub leading the way, it’s becoming the system to use.

Now, with that being said…

Not All Sunshine and Rainbows

Git has its downsides. Here’s a fantastic example by Steve Losh in the article Git Koans:

One Thing Well

A UNIX programmer was working in the cubicle farms. As she saw Master Git traveling down the path, she ran to meet him.

“It is an honor to meet you, Master Git!” she said. “I have been studying the UNIX way of designing programs that each do one thing well. Surely I can learn much from you.”

“Surely,” replied Master Git.

“How should I change to a different branch?” asked the programmer.

“Use git checkout.”

“And how should I create a branch?”

“Use git checkout.”

“And how should I update the contents of a single file in my working directory, without involving branches at all?”

“Use git checkout.”

After this third answer, the programmer was enlightened.

If you can get past the sometimes-odd commands (also see the section The Hobgoblin), I would highly suggest giving git a try. There’s even a free eBook to get you started!