Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the url for a project in GitLab?

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?

like image 541
Stefan Avatar asked Jun 06 '17 12:06

Stefan


2 Answers

You can use below command to set new URL for your repository.

git remote set-url origin git://[email protected]:MyGroup/MyProject.git
like image 97
kk. Avatar answered Sep 28 '22 06:09

kk.


You can find all repositories remotes inside the file .git/config. You can edit it by hand or use command git remote.

like image 42
sensorario Avatar answered Sep 28 '22 05:09

sensorario