logoalt Hacker News

happytoexplaintoday at 12:32 PM2 repliesview on HN

Even if `--update-refs` didn't exist, my experience is that git can identify duplicate commits produced by rebase, and knows to skip them when rebasing the same commits to the same place again. Am I imagining that?


Replies

adrianNtoday at 1:22 PM

That works until you had to fix conflicts during the rebase and the commits are no longer identical.

1718627440today at 12:46 PM

It definitely fast-forwards unchanged commits.