Skip to content

Install latest Git

Learn how to install the latest version of Git on your system.

  1. Install stable Git version

    Bash
    sudo add-apt-repository ppa:git-core/ppa
    sudo apt-get update
    sudo apt-get install git
    
  2. Check Git version

    Bash
    git --version
    

  3. Optional: Configure Git

    Bash
    git config --global user.name "Your name"
    git config --global user.email "Your email"
    
    # enable color output
    git config --global color.ui author
    
    # check configuration
    git config --global --list