Reputation: 10887
$ git remote -v
(null) [email protected]:username/Savvy.git (fetch)
(null) [email protected]:username/Savvy.git (push)
origin [email protected]:username/SavvyCode.git (fetch)
origin [email protected]:username/SavvyCode.git (push)
How can we delete the (null) remote above? Thanks.
Upvotes: 5
Views: 2273
Reputation: 381
Or you can use the CLI and remove it by doing this command:
git remote rm "(null)"
Upvotes: 1
Reputation: 55453
Look at the .git/config
file (".git" is a subdirectory in your project's directory). It's an INI-style file which contains a section for each remote, which look like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = <REPOSITORY_URL>
So look for strange-looking remotes.
Upvotes: 8