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

9
polecenia/06_rebase.txt Normal file
View File

@@ -0,0 +1,9 @@
git rebase
Przenosi commity z bieżącej gałęzi na inną bazę, liniaryzując historię (usuwa merge commity). Zmienia historię, idealne do czyszczenia feature brancha przed merge.
Przykład (rebase na master):
git checkout feature
git rebase master
Przykład (interaktywny rebase - edytuj ostatnie 3 commity):
git rebase -i HEAD~3