To remove a remote from your local repository, use the
git remote rm command:$ git remote -v # View current remotes # origin git@github.com:user/repo.git (fetch) # origin git@github.com:user/repo.git (push) # destination git@github.com:forker/repo.git (fetch) # destination git@github.com:forker/repo.git (push) $ git remote rm destination # Remove remote $ git remote -v # Verify removal # origin git@github.com:user/repo.git (fetch) # origin git@github.com:user/repo.git (push)
Tip: This does not delete the remote repository from
the server, it simply removes the remote and its references from your
local repository.
Error
Could not remove config section 'remote.[name]'
This error means that the remote you requested to delete doesn't exist.
Share:
No comments:
Post a Comment