O'Reilly logo

Mobile DevOps by Jhalak Modi, Rohin Tak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Git on Ubuntu/Debian systems

To install Git on Ubuntu systems, follow these steps:

  1. From your shell, install Git using the apt-get command:
$ sudo apt-get update
$ sudo apt-get install git  
  1. Verify the installation was successful by typing git --version:
$ git --version
git version 2.9.2  
  1. Configure your Git username and email for a single repository:
$ git config --global user.name "firstname lastname"
$ git config --global user.email "email@gmail.com"  
  1. Install the necessary dependencies using the apt-get command:
$ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev asciidoc xmlto docbook2x  
  1. Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required