added git desc
This commit is contained in:
9
polecenia/06_rebase.txt
Normal file
9
polecenia/06_rebase.txt
Normal 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
|
||||
Reference in New Issue
Block a user