Created
March 6, 2023 10:23
-
-
Save PaulRBerg/9707662d42895ca99184df854b4c0ce5 to your computer and use it in GitHub Desktop.
Git alias to copy the message of a commit SHA
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
[alias] | |
# Copy message of provided commit: git cm COMMIT_SHA | |
cm = !"git rev-list --format=%B --max-count=1 $1 | tail +2 | pbcopy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment