Lets say on a given branch the following are the commits of 2 users(U1 and U2)
U1: C5 -> HEAD
U2: C4
U2: C3
U1: C2
U1: C1
Base commit: C0
Is there a way you can squash the commits from C1 to C5 into a single commit while retaining the ownership(in git blame) of each of the authors?
OR
Is there any other approach in git where you can squash commits (from multiple users) into a single commit and still be able to find out who made what changes?