I have a repository to which several (3) authors contributed commits to the same branch of the repo. I want to merge it to the repository from which it was forked, but the admin of that repository asked me to squash the commits by author before they can be merged. I have managed to squash all commits (by all 3 authors) into a single one using
git reset --soft OLD_COMMIT_HASH
where OLD_COMMIT_HASH
is the last commit before we started contributing.
How can I squash the commits while grouping them for each author? Is that possible at all? Even if it is possible, in the end, wouldn't the 3 squashed commits would be marked as authored by me, since I cannot commit on behalf of the other authors?