You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
518 B
14 lines
518 B
#重写提交历史
|
|
git filter-branch -f --commit-filter '
|
|
#重写提交时间等于指定时间戳的历史
|
|
if [ "$GIT_COMMITTER_DATE" = "@1582736444 +0800" ];
|
|
then
|
|
GIT_COMMITTER_NAME="saber666";
|
|
GIT_AUTHOR_NAME="$GIT_COMMITTER_NAME";
|
|
GIT_COMMITTER_EMAIL="saber@qq.com";
|
|
GIT_AUTHOR_EMAIL="$GIT_COMMITTER_EMAIL"
|
|
git commit-tree "$@";
|
|
else
|
|
git commit-tree "$@";
|
|
fi' HEAD
|
|
git push -f
|
|
|