mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-26 09:06:22 +03:00
24 lines
520 B
Plaintext
24 lines
520 B
Plaintext
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)
|