-
-
Save mattfelten/f4e089db01478e2d9675 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/sh | |
revision_number=`git log --format="%H" -n 1` | |
revision_file=revision.txt | |
echo $revision_number > $revision_file | |
git add $revision_file | |
git commit --amend --no-edit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Grab the ID of the commit that was just made and write it out to revision.txt and amend to that commit