Control Freak - Adjusting Authorship Info
Control Freak rejects commits where the author name and email do not exactly match the corresponding name and email values stored in Bitbucket's user directory.
The good news: adjusting authorship data in a branch's tip commit is easy!
The bad news: adjusting authorship data in commits behind the tip (older commits) is much harder.
Set Your Local Git Config First
Make sure your git config has proper name and email values that match your Bitbucket user directory! Like so:
git config --global user.name "User Name" git config --global user.email email@example.com
Adjusting The Tip Commit
The following command will rewrite the current branch's tip commit object. The "--reset-author" flag injects the latest name and email data from your git config:
git commit --amend --reset-author
Adjusting Older Commits
There are two approaches: