Copy last git commit message to clipboard in OSX
I use the following in an alias 'lcm' for copying the last git commit message in a repo to my clipboard, so that it can be pasted into various time tracking apps.
git log -1 --pretty=%B | pbcopy
Super simple stuff.
Written by Chris Hale
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Osx
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#