I am using git version 2.9.0.windows.1
and I want to rebase a local repository (no remote).
But I always get
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
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=/ master
I tried git rebase -i HEAD~3
as suggested in this solution, but it doesn't work in my case.
If I simply copy the repository to my Linux machine, git rebase works fine.
I checked with git config --list
on both machines, they seem almost the same.
So I am wondering what makes git rebase doesn't work on my Windows machine.
UPDATE I did a test for a small case, see my history: git history and rebase: git rebase message
No matter what option I use with git rebase
, I got the same message