Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>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-differ...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: