Last active
October 19, 2017 11:50
-
-
Save rienafairefr/8d95b70426aca611bffa4d0170e74325 to your computer and use it in GitHub Desktop.
GK workaround post-commit rewrite author
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ -e ".git/rewrite_author" ]] | |
then | |
echo "reseting author to the .git/config value" | |
rm .git/rewrite_author | |
git commit --no-edit --reset-author --amend --no-verify | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
touch .git/rewrite_author |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment