-
-
Save JDStraughan/264b9fefc17e33836d8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
fi | |
clear; | |
git log --reverse --author="`git config user.name`" --format="%h (%s)" --since="`date -v-${HOURS}H`" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment