Files
tldr/pages.tr/common/git-revert.md
2022-10-31 06:52:35 -03:00

21 lines
431 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git revert
> Öncekilerin etkilerini geri alan yeni bir commit oluştur.
> Daha fazla bilgi için: <https://git-scm.com/docs/git-revert>.
- En son commit'leri geri al:
`git revert {{@}}`
- En son 5. commit'i geri al:
`git revert HEAD~{{4}}`
- Birden fazla commit'i geri al:
`git revert {{dal_ismi~5..dal_ismi~2}}`
- Yeni commit'ler oluşturma, yalnızca çalışan ağacı değiştir:
`git revert -n {{0c01a9..9a1743}}`