I use git as a local source control system mostly for history and diff tracking. I still want to use rebase to do fixup / squash on WIP commits that I will make periodically. When I try to do git rebase -i though, I get the following:
There is no tracking information for the current branch. Please specify which branch you want to rebase against. See git-rebase(1) for details git rebase <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=<remote>/<branch> MyBranch It seems like git doesn't expect you to use interactive rebase without an upstream remote? How do I do that?
$ git rebase -i HEAD~4ref What does it mean to squash commits in git?. Here "HEAD~4" means to specify the commits as using the last four commits from where the HEAD is.