This article explains how to fix git title: ‘How to resolve git fatal: remote origin already exists’ during the push or include commands.To make any type of application or folder/directory as git enabled, you have to initialize the git init command.Once git is initialized, we need to either produce a new repository or present repository come map this come existing directory.if this directory is produced in nested folder of any git repository, git command throws git fatal: remote origin currently exists error.

You are watching: Fatal: remote origin already exists.

fatal: far origin currently exists git error

What walk it beginning mean?This error comes during multiple usage casescreated a local nested folder application which is a kid folder a local git repository, which this folder desire to map to new remote repository
B:\blog\jswork>git remote include origin far origin already exists.
This does way you are producing origin neighborhood name in already adding existing repository.In any kind of local repository, exactly how do you recognize the far repository url? utilizing the -v option gives the local name with remote url as described following
origin (fetch)origin (push)
This will provides the remote repository url mapped with local name ie origin.origin is the local name for remote repository offered by default.This error occurs throughout adding brand-new url to the present origin.This post covers the equipment for adhering to errors in git commandfatal: No such remote:Remote origin already exists ~ above ‘git push’ to a new repository


There are countless ways we have the right to fix this.

Remove beginning name indigenous the provided existing repository

First, delete the neighborhood name beginning for given remote repository using adhering to command
if remote-repo-url does no exists, it gives an error fatal: No together remote:

Replace current origin to new url

below collection the new url for neighborhood name origin.

See more: How To Cut A Shallot S - How To Brunoise A Shallot Recipe

Join 6,000 subscribers and get a daily digest of complete stack tutorials ceded to your inbox directly.No spam ever. Unsubscribe any time.
android angular angular-examples angular12 css es6 es7 git golang golang-examples gradle hadoop haskell hugo java java-convert java-examples java0-examples java10 java11 java8 java9 javascript javascript-convert javascript-examples jquery linux-unix lodash product maven mongodb mysql node nodejs nodered various other primeng primereact react reactjs seo site sweetalert2 twilio typescript vscode vuejs webdev windows
Recent posts

Javascript - variety vs JSON vs thing basics with instances Fix because that Property has no initializer and is not definitely assigned in the constructor solve Using / for division is deprecated gotten rid of in DartSass2 how to transform json to/from object in angular|Typescript  What no to commit in Angular| Ignore papers in git example