Journaling on estrip is free and easy. get started today

Last Visit 2024-03-16 17:05:41 |Start Date 2003-07-07 03:39:31 |Comments 5,617 |Entries 6,438 |Images 14,748 |Sounds 119 |SWF 21 |Videos 322 |Mobl 2,935 |Theme |

Category: git

11/10/13 07:55 - ID#58282

Changing Author in Git History

In my series of boring computer posts. I was setting up my own gitlab clone when I needed to re-write some commit author logs.

Its actually pretty easy, I'd make sure you have a backup of your repo first.

git filter-branch --env-filter 'if [ $GIT_AUTHOR_EMAIL = paul@hit-nxdomain.opendns.com ]; then GIT_AUTHOR_EMAIL=paulsidekick@gmail.com; fi; export GIT_AUTHOR_EMAIL'


git filter-branch -f --env-filter 'if [ $GIT_AUTHOR_NAME = "paul" ]; then GIT_AUTHOR_NAME ="Visco, Paul"; fi; export GIT_AUTHOR_NAME'

print addComment

Permalink: Changing_Author_in_Git_History.html
Words: 86
Last Modified: 11/10/13 07:55


Search

Chatter

New Site Wide Comments

joe said to joe
Never send a man to do a grandma's job...

sina said to sina
yes thank you!
Well, since 2018 I am living in France, I have finished my second master of science,...

paul said to sina
Nice to hear from you!! Hope everything is going great....

paul said to twisted
Hello from the east coast! It took me so long to see this, it might as well have arrived in a lette...