Last Updated: February 25, 2016
·
1.54K
· dizpers

git clone: 3 ways

First

git clone git@github.com:whatever folder-name

Second

Clone repo, create folder, move repo's content (including .git dir) to created folder. For example:

git clone git@github.com:whatever
mkdir mycooldir
cp -r whatever/* mycooldir/

Third

Create dir for storing your git repos. For example

mkdir ~/repos

Clone your git repo into folder with specific name:

git clone git@github.com:whatever folder-name

Create symbol link in the place, where it's should be. For example, if it's wordpress theme:

cd ~/data/www/wordpress/wp-content/themes/
ln -s ~/repos/mycooltheme