Skip to content

Commit 0f9f607

Browse files
committed
chore: change commit
1 parent 49cf59d commit 0f9f607

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

changeauthor.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# !/bin/sh
2+
3+
git filter-branch --env-filter '
4+
5+
OLD_EMAIL="guifu.wu@dmall.com"
6+
CORRECT_NAME="FaureWu"
7+
CORRECT_EMAIL="faure@wis.design"
8+
9+
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
10+
11+
then
12+
13+
export GIT_COMMITTER_NAME="$CORRECT_NAME"
14+
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
15+
16+
fi
17+
18+
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
19+
20+
then
21+
22+
export GIT_AUTHOR_NAME="$CORRECT_NAME"
23+
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
24+
25+
fi
26+
27+
' --tag-name-filter cat -- --branches --tags

0 commit comments

Comments
 (0)