git клон с названием папки
git clone git@github.com:whatever folder-name
Distinct Dormouse
git clone git@github.com:whatever folder-name
git clone git@github.com:user/my-project.git .
git clone git@github.com:whatever folder-name
git clone git@github.com:whatever .
git clone [repo]
cd [name of sub-dir]
git filter-branch --prune-empty --subdirectory-filter [path to sub-dir] HEAD