Today I Learned

hashrocket A Hashrocket project

Rebase all commits to whats been pushed

When git rebasing interatively, git rebase -i you need to specify a commit to rebase interactively back to, like:

git rebase -i HEAD^^

And generally I specify the commit to rebase to with as many carrots after HEAD as commits I needed. But generally you are rebasing commits that aren't yet pushed to master, so in that case just rebase back to 'origin/master'.

git rebase -i origin/master
See More #git TILs