5 ms·
>squash the last 5 commits into one: `git rebase -i HEAD^^^^^^` Shouldn't this be: `git rebase -i HEAD~5` ? Assuming you only want to rebase linear history.
by ashconnor 2y ago
>squash the last 5 commits into one: `git rebase -i HEAD^^^^^^`
Shouldn't this be: `git rebase -i HEAD~5` ?
Assuming you only want to rebase linear history.
https://stackoverflow.com/questions/2221658/whats-the-difference-between-head-and-head-in-git https://stackoverflow.com/questions/2221658/whats-the-differ...