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.
source
share