TLDR: Do you use different names/emails for git version control (work vs personal)? Then add your user info to the command prompt as a visual reminder of who you're committing as.
A few months ago I ran into a dirty situation, I committed and pushed a lot of code using the wrong git config user.name
and git config user.email
(I was using personal info instead of work info).
Fixing it was possible, but I had to rewrite git history (ouch!)