Skip to content

Instantly share code, notes, and snippets.

View echohn's full-sized avatar

Echo echohn

View GitHub Profile
@echohn
echohn / gist:c439b503733eea60a45b
Created July 17, 2015 05:42
批量修改 git 提交的用户信息
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="old@email.com"
CORRECT_NAME="echo"
CORRECT_EMAIL="new@email.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then