[ACCEPTED]-How do I remove an invalid remote I added in Git?-git
Accepted answer
you can use the set-url
subcommand of git remote:
git remote set-url Nakor git://github.com/nakor/CherryTomato.git
0
When all else fails:
git config --edit
Under...
[remote "Nakor"]
...edit the 1 line...
url = git://github.com.nakor/CherryTomato.git
From github help Removing a remote:
git remote -v
# View current remotes
origin https://github.com/OWNER/REPOSITORY.git (fetch)
origin https://github.com/OWNER/REPOSITORY.git (push)
destination https://github.com/FORKER/REPOSITORY.git (fetch)
destination https://github.com/FORKER/REPOSITORY.git (push)
git remote rm destination
# Remove remote
git remote -v
# Verify it's gone
origin https://github.com/OWNER/REPOSITORY.git (fetch)
origin https://github.com/OWNER/REPOSITORY.git (push)
0
git remote --help
tells all. In this instance, use git remote set-url ...
.
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.