ItSolutionStuff.com

Solved - fatal remote origin already exists - Git

By Hardik Savani • March 30, 2021
Git

In this quick example, let's see fatal remote origin already exists. git. if you want to see example of github fatal remote origin already exists then you are a right place. This post will give you simple example of bitbucket git fatal remote origin already exists. this example will help you git fatal remote origin already exists.

Few days ago, i was working on my crud app and i clone old project. then i want to upload again with new github repository. but when i was trying to adding remote origin then it gives me "fatal remote origin already exists" error as bellow:

so after long search i find out the way to remote origin already exists and then add new remote origin so let's see bellow two solution:

Solution 1

git remote rm origin

git remote add origin git@github.com:username/myapp.git

Solution 2

git remote set-url origin git@github.com:username/myapp.git

I hope it can help you...

Thank you...

Tags: Git
Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

Laravel 8 Guzzle Http Client Request Example

Read Now →

8 Advantages of PHP Web Development Services

Read Now →

How to Merge Your Branch to main Branch in Github?

Read Now →

Git Command to Ignore File Permission Changes

Read Now →

How to Add Git Add Remote Origin on Bitbucket Repository?

Read Now →

Git - How to Find a Deleted File in Commit History?

Read Now →

How to Configure Git Username and Email?

Read Now →

Git - error failed to push some refs to git resolve - Solved

Read Now →

How to Git Force Pull from Remote Branch?

Read Now →

Git Remove Last Commit from Local Example

Read Now →