I had a branch which was merged off of commit A of branch main. I made a few changes and ended up like this:
A
main
A-B-C-D