Skip to content

For those who wants to rewrite their username and email from old git commits

Notifications You must be signed in to change notification settings

theJuanon/git-info-rewriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

git-info-rewriter

For those who wants to rewrite their username and email from old git commits.

USAGE

From your terminal: Execute the next script following with your desired info in this order:

./git-info-rewrite.sh <[email protected]> <username> <[email protected]>

Copy the script from above replacing the params with your actual info (omit the "<>" symbols)

FOR REMOTE REPOS

If the commits you want to change are already in a remote repository and you want to push the changes you will need to force the push. (Because we are basically rewriting the repo's history)

git push --force --tags origin 'refs/heads/*'

About

For those who wants to rewrite their username and email from old git commits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages