git remote
You can manage your git remotes using this command. A few things worth noting:
- Deleting a remote won’t delete any branches you’ve already checked out from it
- Deleting a remote won’t do anything to the remote repository to which it refers. You’re just removing it as a remote in your local repo.
Command | What does it do? |
---|---|
git remote add [remote-name] [remote-url-or-path] | Add a remote |
git remote rm [remote-name] | Remove a remote |
git remote rename [old-name] [new-name] | Rename a remote |