Verify the installation was successful by typing git version : git version git version 2.9.2. : ~$ git commit -m "strong commit message" How do I download a git repository Originally Posted by Vaphell. How do I download a git repository in Linux Install Git on Linux From your shell, install Git using apt-get: sudo apt-get update sudo apt-get install git. Since the first set of commands installed Git and performed the one-off config operations, the set of commands is more compact: : ~$ git clone : ~$ cd my-github-repo The process of cloning a GitHub repo in Ubuntu isn’t that much different. : ~$ git commit -m " good commit message"
Well continue on and show you how to add and clone a repo from GitHub.
In our previous article on Installing Git on Ubunto 18.04, weve instructed on how to add Git to your Ubuntu VPS server. You can clone an existing Git repository from elsewhere. GitHub is a free repository hosting service, used as version control for web developers to download and push their code from their servers to other users. : ~$ git config -global user.name "cameronmcnz" You typically obtain a Git repository in one of two ways: You can take a local directory that. The commands used in the Ubuntu Git clone example where the target was a GitLab project are as follows: : ~ $ sudo apt install git