I often see this in pull requests, where someone accidentally pushes up a bunch of rebased commits into their PR, and then in the commits tab, there’s a long list of all the existing commits that are already on master.
I remember I had this issue when I was a git newby and messed up rebases (I don’t think the issue was present with merge), but I can’t recall what caused the issue. Does anyone know what I’m referring to?