Search code examples
gitsmartgit

How do I remove a remote from git?


I use SmartiGit for an SVN repo and now I have this error message in SmartGit:

The repository has multiple remotes defined (either Git or SVN). This kind of configuration is not supported and will result in errors.

How can I see the multiple remotes and delete the one that is wrong?

git remote

shows just

master

I think I added the master remote on the console once and I guess, that is what I did wrong. (I cant recall, how I added it)


Solution

  • From git remote man page

    git remote remove master
    

    But first, do a git config -l to see your remote definition, and check if indeed you have a remote named master (and where it was pointing to).