Skip to content

Instantly share code, notes, and snippets.

View JDStraughan's full-sized avatar

Jason Straughan JDStraughan

View GitHub Profile
# Place this into your .bash_aliases and ensure you source the file
# To use, run `gitlog` to get the commits for the past 12 hours
# To get a different time range, run `gitlog 36` for the previous 36 hours
function gitlog() {
if [ -z "$1" ]
then
HOURS=12
else
HOURS=$1