Skip to content

Instantly share code, notes, and snippets.

@AlexBaranosky
Created August 21, 2014 05:42
Show Gist options
  • Save AlexBaranosky/a92088d508281c59d2c9 to your computer and use it in GitHub Desktop.
Save AlexBaranosky/a92088d508281c59d2c9 to your computer and use it in GitHub Desktop.
#!/bin/bash
line=$(git log | head | sed -n 1p)
echo "${line:7 :${#line}-1}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment