mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
23 lines
520 B
Text
23 lines
520 B
Text
title = Deleting and renaming a remote
|
|
cards = checkout
|
|
|
|
[description]
|
|
|
|
Here, you already have two remotes configured! You can list them using `git remote`.
|
|
|
|
[setup]
|
|
|
|
git remote rename friend frend
|
|
|
|
[setup friend]
|
|
|
|
[setup enemy]
|
|
|
|
[win]
|
|
|
|
# Rename the remote with the typo (using `git remote rename [old name] [new name]`)
|
|
git remote | grep friend
|
|
# The remote with the typo is gone.
|
|
! grep 'frend' <(git remote)
|
|
# Delete the remote you don't want to keep (using `git remote remove [remote]`)
|
|
! grep 'enemy' <(git remote)
|