Skip to content

Instantly share code, notes, and snippets.

View haarcuba's full-sized avatar
🎯
Focusing

Yoav Kleinberger, PhD haarcuba

🎯
Focusing
View GitHub Profile
@ecentinela
ecentinela / Change author details in commit history
Created October 2, 2009 11:17
Change author / commiter details in all commits (WARNING: Will change all SHA1s)
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]