how to get a repository on local machine using git code example
Example 1: download github repository
git clone https://github.com/username/project-name.git
Example 2: take clone from gitbash
$ git clone https://github.com/libgit2/libgit2 mylibgit