Skip to content

Instantly share code, notes, and snippets.

@chaimann
Created February 12, 2016 16:09
Show Gist options
  • Save chaimann/9aecf6a0d9f2c33809bd to your computer and use it in GitHub Desktop.
Save chaimann/9aecf6a0d9f2c33809bd to your computer and use it in GitHub Desktop.
copy last git commit message to clipboard
// git config --global alias.last 'log -1 HEAD'
git last | tail -n 1 | sed 's/^[[:blank:]]*//;s/[[:blank:]]*$//' | pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment