Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Step 1:
git clone --bare <REPOSITORY URL with ".git" extention>
cd <repository folder>
# Step 2:
# ~ Required GitHub Email and Username
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='vamsee9'
GIT_AUTHOR_EMAIL='4n0n5ur7@protonmail.com'
GIT_COMMITTER_NAME='vamsee9'
GIT_COMMITTER_EMAIL='4n0n5ur7@protonmail.com'
" HEAD
# Note: when you see this line Ref 'refs/heads/main' was rewritten run bellow command
# Step 3:
git push --force --tags origin 'refs/heads/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment