Download Git Magic - Stanford University

Transcript
Preface
Git is a version control system initially designed and implemented
by Linus Torvalds in 2005. Git quickly earned a place in my toolkit
because it is fast, robust, flexible, simple, lightweight, scalable, and
powerful.
However, Git has its drawbacks. In particular, it can bewilder
beginners. When I started, I had to don safety gear: at the time, Git
was so scary that I only ran it indirectly via a wrapper script named
“cogito”.
Happily, the situation improved rapidly and dramatically. The user
interface underwent cosmetic surgery, making cogito obsolete.
Volunteers worked hard on documentation, both official and
unofficial. Books from reputable publishers materialized in the blink
of an eye.
Too late for me. I had already learned Git’s advanced features the
hard way, namely through arduous trial and error. As I progressed, I
kept notes on my website, “Git Magic”. They proved unexpectedly
popular: to my chagrin, far more popular than any code I’ve written.
Thus I was motivated to maintain and update my website, which
you’re now reading in book form.
My website is freely accessible, along with its source: search for
“git magic”, install the gitmagic package on any Debian-based
Linux distribution, or clone one of the following repositories:
• git://repo.or.cz/gitmagic.git
• git://github.com/blynn/gitmagic.git
• git://gitorious.org/gitmagic/mainline.git
(No idea what “clone” means? Then read this book!)
Perhaps you’re wondering why I bothered with this quaint oldfashioned medium. It’s all thanks to Carl Hu. In a gracious email, he
vii