Created
June 24, 2013 15:43
-
-
Save tkellogg/5851011 to your computer and use it in GitHub Desktop.
A git alias that's like commit --amend but adds changes to the last commit without changing the commit message
This file contains hidden or 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 | |
msg=$(git log -n 1 --format="%B") | |
git reset HEAD^ | |
git add -A | |
git commit -m "$msg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment