If you are using ssh
for git cloning
you can use the following command.
git -C path clone git@github.com:path_to_repo.git
eg:
git -C /home/ubuntu/ clone git@github.com:kennethreitz/requests.git
would pull the git repository for requests
to your /home/ubuntu/
path.