git how to clone a directory from the command line code example
Example 1: git clone with folder name
git clone [email protected]:whatever folder-name
Example 2: take clone from gitbash
$ git clone https://github.com/libgit2/libgit2 mylibgit
git clone [email protected]:whatever folder-name
$ git clone https://github.com/libgit2/libgit2 mylibgit