Skip to the posts
Buffalo's neighborhood journals since 2003 🍀 Patrick Spicy Devil Logan🌭 Sahlen🥨 Weber Spank🥟 Pierogi🐸 Scaj🍺 Labatt Utica Pink Cherio❄️ Snow Murder

paul’s journal

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'

💬 0 comments

💬 Write a comment