How to install Git from source on Ubuntu

This mini-HOWTO explains how to install Git from source on Ubuntu. Git is a free Version Control System (VCS) which is distributed.

Installation

How to install Git on Ubuntu:

  1. sudo apt-get build-dep git-core git-doc
  2. Download the latest stable release of Git from its web site http://git-scm.com/.
  3. Unpack the downloaded archive file.
  4. Go into the unpacked folder.
  5. ./configure
  6. make prefix=/usr/local all doc
  7. sudo make install install-doc
  8. Remove the unpacked folder.

You are now ready to use Git.

Comments

Thanks, worked for me, the

Thanks, worked for me, the only thing to mention that on Ubuntu Karmic

sudo apt-get build-dep git-core git-doc

downloaded some 250 MB

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p>
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.