tldr/pages/common/git-revert.md
Starbeamrainbowlabs 948bcac65d
git-*: use inclusive language (#4533)
* git subtree: make language inclusive

* git revert: make language inclusive

* git rev-list: make language inclusive

* git request-pull: make language inclusive

* git rebase: make language inclusive

* git revert/es: make language inclusive

* git rev-list/es: make language inclusive

* git rebase/es: make language inclusive

* git-rebase/es: improve language

Co-authored-by: Marco Bonelli <marco@mebeim.net>

* git-rebase/es: improve language

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Update git-rebase.md

* git-subtree: revise example description

* git-rebase/es: translate branch_name

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Update git-rebase.md

* Update git-rev-list.md

* Update pages.es/common/git-revert.md

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Apply suggestions from code review

Co-authored-by: Waldir Pimenta <waldyrious@gmail.com>

Co-authored-by: Marco Bonelli <marco@mebeim.net>
Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
Co-authored-by: Waldir Pimenta <waldyrious@gmail.com>
2020-10-19 19:26:01 +01:00

416 B

git revert

Create new commits which reverse the effect of earlier ones. More information: https://git-scm.com/docs/git-revert.

  • Revert the most recent commit:

git revert {{@}}

  • Revert the 5th last commit:

git revert HEAD~{{4}}

  • Revert multiple commits:

git revert {{branch_name~5..branch_name~2}}

  • Don't create new commits, just change the working tree:

git revert -n {{0c01a9..9a1743}}