copy a git repo to local 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
git clone https://github.com/username/project-name.git
$ git clone https://github.com/libgit2/libgit2 mylibgit