Skip to content

Instantly share code, notes, and snippets.

@rienafairefr
Last active October 19, 2017 11:50
Show Gist options
  • Save rienafairefr/8d95b70426aca611bffa4d0170e74325 to your computer and use it in GitHub Desktop.
Save rienafairefr/8d95b70426aca611bffa4d0170e74325 to your computer and use it in GitHub Desktop.
GK workaround post-commit rewrite author
#!/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
#!/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