Created
September 29, 2023 11:08
-
-
Save etorreborre/e71d28c35d1142613656a0476a1634ca to your computer and use it in GitHub Desktop.
copy the most recent commit to the clipboard
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
``` | |
git log -1 --pretty=full | head -1 | awk '{ print $2 }' | pbcopy | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create an alias for the command: