I have a git repository living at git://server.local/repo.git
Cloning with git clone git://server.local/repot.git
sets up origin
like this:
$ git remote -v
origin git://server.local/repo.git (fetch)
origin git://server.local/repo.git (push)
But I would like this instead:
$ git remote -v
origin git://server.local/repo.git (fetch)
origin ssh://server.local/realrepopath/repo.git (push)
I want this to be done automatically when cloning (without changing manually the remote URL).
Is that possible ?
Edit: I don't want to have to run any command or script after the cloning is done. I would like to configure the remotes URL on the server so that I don't have to manually change them after cloning a repository.