I have a project in Gitlab that is available over HTTP/SSH:
[email protected]:MyGroup/MyProject.git
I want to change that using another IP, i.e.:
[email protected]:MyGroup/MyProject.git
Where or how can I change that?
I have a project in Gitlab that is available over HTTP/SSH:
[email protected]:MyGroup/MyProject.git
I want to change that using another IP, i.e.:
[email protected]:MyGroup/MyProject.git
Where or how can I change that?
You can use below command to set new URL for your repository.
git remote set-url origin git://[email protected]:MyGroup/MyProject.git
git remote -v
.
Commented
Jan 2, 2019 at 11:26
You can find all repositories remotes inside the file .git/config
. You can edit it by hand or use command git remote
.
once You set url don't forget to check
git remote set-url origin git://[email protected]:MyGroup/MyProject.git
to check url properly set or not use below command
git remote show origin
or
git config --get remote.origin.url