Remove (null) git Remote

git, git-remote

Solution

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.

Problem

``` $ git remote -v (null) git@github.com:username/Savvy.git (fetch) (null) git@github.com:username/Savvy.git (push) origin git@github.com:username/SavvyCode.git (fetch) origin git@github.com:username/SavvyCode.git (push) ``` How can we delete the (null) remote above? Thanks.

Original source