Skip to content

Instantly share code, notes, and snippets.

@bangonkali
Created November 21, 2019 18:47
Show Gist options
  • Save bangonkali/ff79f06e2085efd0b0198a5c2e3fdb85 to your computer and use it in GitHub Desktop.
Save bangonkali/ff79f06e2085efd0b0198a5c2e3fdb85 to your computer and use it in GitHub Desktop.
This script changes the author of a certain git repository.
#!/bin/bash
# Change the GIT author
git filter-branch --env-filter '
export GIT_AUTHOR_NAME="bangonkali"
export GIT_AUTHOR_EMAIL="[email protected]"
' --tag-name-filter cat -- --branches --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment