I have a git repository living in git: //server.local/repo.git
Cloning with git clone git://server.local/repot.gitinstalls originas follows:
$ 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:
origin ssh:
I want this to be done automatically when cloning (without manually changing the remote URL).
Is it possible?
Edit: I do not want to run any command or script after cloning is complete. I would like to configure the URL of the remote servers on the server so that I don't have to manually change them after cloning the repository.
source
share