Created
May 15, 2019 09:30
-
-
Save maxboeck/f9495b1e0621022de73883f2178baa15 to your computer and use it in GitHub Desktop.
Custom git command to append an issue number to the last commit message.
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 | |
OLD_MSG=$(git log --format=%B -n1) | |
git commit --amend -m "$OLD_MSG, #$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to use it: https://mxb.dev/notes/2019-05-15/