moey
moey

Reputation: 10887

Remove (null) git Remote

$ 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

Answers (2)

Marz
Marz

Reputation: 381

Or you can use the CLI and remove it by doing this command:

git remote rm "(null)"

Upvotes: 1

kostix
kostix

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

Related Questions