added git desc

This commit is contained in:
2025-12-10 18:21:12 +01:00
parent 4e04844861
commit 458b71d8b7
3 changed files with 25 additions and 0 deletions

8
polecenia/05_revert.txt Normal file
View File

@@ -0,0 +1,8 @@
git revert
Tworzy nowy commit, który cofa zmiany z wybranego commitu, zachowując pełną historię. Bezpieczne dla współdzielonych branchów, bo nie usuwa commitów.
Przykład (cofnij ostatni commit):
git revert HEAD
Przykład (cofnij zakres commitów):
git revert HEAD~2..HEAD