Ran into an interesting issue with User ID impersonation:
Our team member was having access issues, while pushing into one of the GitLab projects. He did not realize that ‘master’ branch was protected.
While trying to reproduce his problem, I used the
‘git config –global user.[name,email]’ commands to change my
user.email to his. I was thinking that GitLab would deny my attempt to push to master. To my surprise it didn’t, but reported that he was the one that performed the commit in the commits tab and in the Files/History.
As a matter of fact, the only place it showed up as my Push, was in the Project/Activity tab, but by now it was someplace at the bottom of a long list, hard to find.
I guess this is a side effect of differentiating between Git authors and Git pushers/committers. My question is: is there a way to force GitLab to display the pusher’s ID in File/History and Commits log, instead of the
author's ID that may be recorded in the User’s local Git repo. In other words, I’d rather not see commits made by “Mickey Mouse” or “Cinderella” if that’s what they decide to call themselves on their local repos.