1 Installing Git

You can install Git in several different ways: by using one of the GUI installers, by using a package management system, or, in the time-honored Linux tradition that spawned Git, by compiling it from source.

Don’t worry if you’re not ready to start compiling software; all major operating systems provide alternatives to compiling Git yourself. For example, Ubuntu provides Git via its apt-get tool, so a few commands from the terminal are enough to get you going. Likewise, OS X users have the option of using MacPorts[5] or the new Homebrew[6] to handle the installation. Not to be left out, Windows users who use Cygwin[7] can also install it via Cygwin’s setup.exe.

Windows and OS X users who prefer GUI installations ...

Get Pragmatic Guide to Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.