Home
Git - Adjusting Authorship InfoYou have probably arrived at this webpage because your Control Freak - Commit Checkers and Jira Hooks for Bitbucket plugin is configured to reject 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 FirstMake sure your git config has proper name and email values that match user records in Bitbucket's user directory! Like so: git config --global user.name "User Name" git config --global user.email user@example.com Adjusting The Tip CommitThe 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 CommitsThere are two approaches:
|