10 lines
337 B
Plaintext
10 lines
337 B
Plaintext
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
|