Interactive rebase for all commits

This commit is contained in:
2022-04-04 16:33:34 +03:00
committed by GitHub
parent ae290204ed
commit e96f3eaa2e

View File

@@ -17,8 +17,9 @@ git reset --hard # resets all #3, #2 and #1
--- ---
## git rebase ## git rebase
``` ```
git rebase <hash> # rebase using commits's hash git rebase <hash> # rebase using commits's hash
git rebase -i HEAD~n # interactive rebase for last n commits git rebase -i HEAD~n # interactive rebase for last n commits
git rebase -i --root HEAD # interactive rebase for all commits
``` ```
--- ---
## git commit referencing using ^ and ~ ## git commit referencing using ^ and ~