My last commit was displayed with my organization name and email as committer on Github. After little research, I found many tweaks and tried these commands to change name & email in the last commit:
git -c user.name="my_name" -c user.email=my_email_address commit --amend --reset-author
git commit --amend --author "my_name <my_email_address>"
These commands worked perfectly but after merging the code, I just noticed that again my organization name is displayed with the last merge commit.
- Why my commits uses organization name & email rather than my name & email?
- Suggest me the best possible way to change name and email for the last merge and that may use the same (new) name/email for next commits.
- Is there any way to specify the name & email with every individual commit to end this confusion?