_installGitLinux

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

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

  1. Enter the following command to install Git:

    $ sudo apt-get install git
  2. 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

  1. Configure your username using the following command.

    $ git config --global user.name "Emma Paris"
  2. Configure your email address using the following command.

    $ git config --global user.email "eparis@atlassian.com"
  3. 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
Last modified on Aug 25, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.