#!/bin/sh -e
#
# git-copy-commit - copies the last commit SHA1 to the clipboard

git show --format='%H' --no-patch HEAD --quiet \
  | tee /dev/stderr \
  | tr -d '\n' \
  | pbcopy
