git clone file code example
Example 1: git clone repo with name
git clone https://github.com/foo/repo_name.git new_directory_name
Example 2: take clone from gitbash
$ git clone https://github.com/libgit2/libgit2 mylibgit
git clone https://github.com/foo/repo_name.git new_directory_name
$ git clone https://github.com/libgit2/libgit2 mylibgit