how to set up a git repository and clone in localhost 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