Skip to content

How to remove a git remote ?

To list down your remote repository handles that is currently being used in local repository, we use git remote -v command.

Advertisements
> git remote -v
origin	https://achandran@bitbucket.org/poopcoders/ppcode-batch.git (fetch)
origin	https://achandran@bitbucket.org/poopcoders/ppcode-batch.git (push)

To remove a remote from your local repository, you can use the following command.

git remote remove origin
git remote rm origin

or..

See also  Find out which remote branch a local branch is tracking

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.