Error: remote gerrit already exists

I am trying to add a remote gerrit, but I am getting an error like:

fatal: remote gerrit already exists.

How to delete an existing gerrit?

+3
source share
2 answers

You did not indicate which command was causing this error output, but I assume it was something like:

git remote add gerrit <url>

If you already have a remote named gerrit, you will get this error. You can see which pools are in your repository with

git remote -v

To remove the remote control, use

git remote rm <name>

name is "gerrit" in your case.

+3
source

A remote name called gerrit. You can find it:

git remote -v

So remove this old remote:

git remote rm gerrit

Then add it again:

git remote add gerrit <url>

+1
source

All Articles