Skip to content

Instantly share code, notes, and snippets.

View iamawmrit's full-sized avatar
🎯
Focusing

Amrit Adhikari iamawmrit

🎯
Focusing
View GitHub Profile
@iamawmrit
iamawmrit / rewrite.sh
Last active May 16, 2023 10:01
Rewrite git history
git filter-branch --env-filter '
if [ "$GIT_AUTHOR_EMAIL" = "email@email.com" ]; then
GIT_AUTHOR_NAME="username"
GIT_AUTHOR_EMAIL="email2@email2.com"
fi
if [ "$GIT_COMMITTER_EMAIL" = "email@email.com" ]; then
GIT_COMMITTER_NAME="username"
GIT_COMMITTER_EMAIL="email2@email2.com"
fi
' --tag-name-filter cat -- --branches --tags
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns