logoalt Hacker News

dietr1chtoday at 4:00 AM1 replyview on HN

I was hoping for a rebase that recalled what your previous base commit of your branch.

I'm really not fond of having to `git rebase --interactive` just to drop all commits that are "already in master", especially when I forget this silly step and get a borked rebase.


Replies

xelxebartoday at 4:47 AM

Does this not do what you want?

    git rebase -i master..HEAD
The gitrevisions(7) manpage is a good reference to keep in your back pocket, I find.

https://www.man7.org/linux/man-pages/man7/gitrevisions.7.htm...