git has a cloned git in it code example
Example 1: git clone
#You will be required to sign into github
git clone [email protected]:UserName/gitRepositories.git
Example 2: take clone from gitbash
$ git clone https://github.com/libgit2/libgit2 mylibgit