_installGitLinux
Ubuntu uses the apt package management system, which provides the command line utility apt-get and optional graphical interfaces, such as Synaptic and Aptitude. We'll use apt-get to install packages, but if you're more comfortable with GUIs, those options are available.
Step 1. Install Git for Linux
Enter the following command to install Git:
$ sudo apt-get install git
Verify the installation was successful by typing
which git
at the command line.$ which git
/opt/local/bin/git
Step 2. Update your configuration file
Configure your username using the following command.
$ git config --global user.name "Emma Paris"
Configure your email address using the following command.
$ git config --global user.email "eparis@atlassian.com"
Configure Git to handle line endings properly. We recommend this setting if you're collaborating on repositories with others who have different operating systems. Without this setting, Bitbucket may consider files as changed even if the actual content doesn't change because each operating system handles line endings differently.
$ git config --global core.autocrlf input