Git: Update remote url in your local machine
Thiago Matos

Thiago Matos @thiagoematos

About: “Fundação Paulo Feitoza”, where I worked as Software Developer from 2008 to 2020. Currently, I've been working at Invillia since 2021.

Location:
Manaus, AM - Brazil
Joined:
Jun 30, 2024

Git: Update remote url in your local machine

Publish Date: Aug 17 '24
1 0

Given
You've cloned a remote git repository, for example:

git@gitlab.com:project-name.git

When
That repository changes its remote url to, for example:

git@gitlab.com:another-project-name.git

Then
I must update the remote url in your local machine using this command:

git remote set-url origin git@gitlab.com:another-project-name.git
Enter fullscreen mode Exit fullscreen mode

And then, confirm the change was applied:

git remote -v
Enter fullscreen mode Exit fullscreen mode

If you are using IntelliJ Idea, then you can access:

Menu -> Git -> Manage Remotes...

And make the update in this window:

Window to update the git repository remote url

Comments 0 total

    Add comment