Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 754 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 754 Bytes

README

Accidentally commit using the wrong user credentials?

Use this script to overwrite ALL commits with the specified email, replacing the previous credentials with your currently configured credentials!

But uh... you probably shouldn't use this if you don't understand the consequences of doing that...

Form: ./git-stealcommits.sh <steal-commits-from-this-email>

Usage Example

./git-stealcommits.sh [email protected]

The above will search for commits with made by [email protected], and replace the user information with your currently configured user.name and user.email.

Try it out on this repository! No harm done, though you might not be able to pull properly after that since the histories will then appear divergent.