I have many repositories with the remote origin set to HTTPS. Now I want to change all origin remotes to SSH.
I am using a command for this in which I want to replace all preceeding url = https://gitlab.mypath/
with git@gitlab.maypath:
.
Is there a way to express this with one sed call. Something like:
's@https://gitlab.mypath/@git@gitlab.mypath:@g'
I have to be able to escape the first "@g"