Reputation: 1
I am currently using this command ::
git clone --bare path/in/local ssh://path/in/server
But this command is creating a new git folder named ssh://path/in/server in my local system and then cloning the local git repository in it.
So,I need to know if there is a way to have it done using the git clone command specifically.
Upvotes: 0
Views: 58
Reputation: 18520
git clone
can only create local repositories.
If you want to create a repository elsewhere, you'll need to create an empty repository on the remote machine (for that you typically need shell access or some kind of admin interface), then add it as a remote in your local repo and push to it.
Upvotes: 2