Search code examples
laravelgitvue.jsphpstormdigital-ocean

Change git repo from remote host


I have laravel-vue.js framework web site project that another developer coded on digitalocean.

Also there is a git file in the framework.

I want to use git, too. However, there is another git ssh link in project.

[email protected]:user/projectname.git

I created a gitlab repo but i couldn't decide what to do next.

[email protected]:myuser/projectname2.git  

How can i get this project to my local and do changes on git.

Generally i use phpstorm for coding.

Thanks.


Solution

  • You need to change your git origin url in your repository.

    Use git remote set-url origin new.git.url/here to replace old git URL with the new one.