Created
November 29, 2017 03:48
-
-
Save trustin/6afd0edeae85e0585f4ec2ed2434431c to your computer and use it in GitHub Desktop.
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
#!/bin/bash -e | |
HEAD_COMMIT_ID=$(git rev-parse HEAD) | |
if [[ -n "$HEAD_COMMIT_ID" ]]; then | |
git commit --amend --reuse-message="$HEAD_COMMIT_ID" | |
git push --force | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment