Skip to content

Commit ac73585

Browse files
DataEraserDataEraser
authored andcommitted
new file: r.sh
1 parent a4e3756 commit ac73585

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

r.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
git filter-branch --env-filter '
4+
OLD_EMAIL="1770747317@qq.com"
5+
CORRECT_NAME="DataEraser"
6+
CORRECT_EMAIL="MayuriNFC@outlook.com"
7+
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
8+
then
9+
export GIT_COMMITTER_NAME="$CORRECT_NAME"
10+
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
11+
fi
12+
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
13+
then
14+
export GIT_AUTHOR_NAME="$CORRECT_NAME"
15+
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
16+
fi
17+
' --tag-name-filter cat -- --branches --tags

0 commit comments

Comments
 (0)