git clone repo with name
git clone https://github.com/foo/repo_name.git new_directory_name
git clone a remote repository
git clone username@host:/path/to/repository
Source: confluence.atlassian.com
git clone https://github.com/foo/repo_name.git new_directory_name
git clone username@host:/path/to/repository