Skip to content

Instantly share code, notes, and snippets.

@maxboeck
Created May 15, 2019 09:30
Show Gist options
  • Save maxboeck/f9495b1e0621022de73883f2178baa15 to your computer and use it in GitHub Desktop.
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.
#!/bin/sh
OLD_MSG=$(git log --format=%B -n1)
git commit --amend -m "$OLD_MSG, #$1"
@maxboeck
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment