Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»General Articles»How to Install Git on Ubuntu 20.04

    How to Install Git on Ubuntu 20.04

    RahulBy RahulNovember 7, 20202 Mins ReadUpdated:May 31, 2022

    The Ubuntu 20.04 default apt repositories contain git packages. You can install git packages directly from the default git repositories. But they may not have the latest version of the git client.

    Git core team also maintains a PPA with latest git Debian packages. You can add this PPA to your system and install the latest git on your system.

    This tutorial will help you to install Git on Ubuntu 20.04 LTS Linux system.

    Install Git on Ubuntu 20.04

    Use the following steps to install Git on the Ubuntu Linux system.

    1. Install the software-properties-common package on your system, which contains add-apt-repository command
      sudo apt install software-properties-common -y 
      
    2. Add the PPA to your system using the following command.
      sudo add-apt-repository ppa:git-core/ppa 
      
    3. Next, install git debian package on your system
      sudo apt install git -y
      

    That’s it, Git has been installed on your Ubuntu system.

    Configuirng Git Client

    Setup the Git user details on your machine, which is used as your identity by the Github or other repository providers.

    To set up a username and email address system-wide, execute the following command. Make sure to change your name and email address with yours.

    git config --gloabl user.name "Rahul Kumar"
    git config --gloabl user.email "[email protected]"
    

    To configure identity for a specific repository, remove --global from the above command and run it from your repository directory.

    Conclusion

    This tutorial explained how to install the latest Git on Ubuntu 20.04 LTS Linux system via the command line.

    git Ubuntu version manager
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Notepad++ on Ubuntu 18.04
    Next Article How To Install NVM on Debian 9

    Related Posts

    Filesystem Hierarchy Structure (FHS) in Linux

    Updated:July 1, 20222 Mins Read

    What is CPU? – Definition, Types and Parts

    3 Mins Read

    How to Install Ionic Framework on Ubuntu 22.04

    3 Mins Read

    What is the /etc/hosts file in Linux

    Updated:June 27, 20222 Mins Read

    Creating DMARC Record for Your Domain

    Updated:June 29, 20223 Mins Read

    What is Computer Hardware?

    4 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.