I am on branch master. When I do git rebase -i --root master I can see every commit ever made in the repository and rebase. However, when I do a git rebase -i master or a git rebase -i origin/master, I get:
noop
Rebase fa2874e..4a271fe onto fa2874e ( 1 TODO item(s))
When I pick a specific commit to rebase onto, I can rebase, e.g., git rebase -i d0738d9d076cc64565659920b8cf0405fa8f6f4e works.
But in other projects I have worked on, I am positive* that git rebase -i master works without picking a specific commit and shows the delta between all commits on the current branch and master.
What is going on here? Do I have something wrong with remotes?
masterwhen the checked out branch also happens to bemaster? I believe as there isn't any new commit in the new base (master), the operation is expendable - which is probably the reason git labels it as anoop. You may want to trygit rebase -i master~nwhere n is the number of latest commits that you want to change, if that's the objective here.git rebase HEAD~3orgit rebase master~4variations of the command.-iin my last comment. Was it notgit rebase -i master~4(with-iflag) that solved your problem?