Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 352 Bytes

git-change-author-push.md

File metadata and controls

11 lines (9 loc) · 352 Bytes

Change Author Of Old Commits And Push It

I often switch to another user or computer and forget to set git user (specialy with github) only to remember it after pushing, to fix it :

$ git config user.name "My Name"
$ git config user.email "my_email"
$ git commit --amend --author "My Name <my_email>"
$ git push origin my_branch --force