mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Merge 77e96ce382 into accdcb2f1c
This commit is contained in:
commit
ea69cb6268
1 changed files with 12 additions and 0 deletions
|
|
@ -32,6 +32,18 @@ function work_in_progress() {
|
||||||
echo "WIP!!"
|
echo "WIP!!"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
#change current branch old email with new eamil
|
||||||
|
gmvemail() {
|
||||||
|
OLD_EMAIL=$1 NEW_EMAIL=$2 git filter-branch --commit-filter '
|
||||||
|
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ];
|
||||||
|
then
|
||||||
|
GIT_AUTHOR_EMAIL="$NEW_EMAIL";
|
||||||
|
git commit-tree "$@";
|
||||||
|
else
|
||||||
|
git commit-tree "$@";
|
||||||
|
fi' HEAD
|
||||||
|
git update-ref -d refs/original/refs/heads/$(git symbolic-ref --short HEAD)
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue