Show the most recent git commit hash, and copy it to the clipboard:
Linux
git rev-parse HEAD | tee xclip -selection c
Windows (mingw/cygwin)
git rev-parse HEAD | tee /dev/clipboard
Mac
git rev-parse HEAD | tee pbcopy
Show the most recent git commit hash, and copy it to the clipboard:
git rev-parse HEAD | tee xclip -selection c
git rev-parse HEAD | tee /dev/clipboard
git rev-parse HEAD | tee pbcopy