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

后端 未结 2 2369
醉酒成梦
醉酒成梦 2021-02-20 11:26

I have a project in Gitlab that is available over HTTP/SSH:

git@192.168.1.10:MyGroup/MyProject.git

I want to change that using another IP, i.e.

相关标签:
2条回答
  • 2021-02-20 11:32

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

    0 讨论(0)
  • 2021-02-20 11:38

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

    git remote set-url origin git://git@192.168.1.20:MyGroup/MyProject.git
    
    0 讨论(0)
提交回复
热议问题