Skip to content

Instantly share code, notes, and snippets.

@vamsee9
Created April 8, 2021 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vamsee9/1aac9f9f804a61730ec369218d726600 to your computer and use it in GitHub Desktop.
Save vamsee9/1aac9f9f804a61730ec369218d726600 to your computer and use it in GitHub Desktop.
# 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