Skip to content

Instantly share code, notes, and snippets.

View oliverpool's full-sized avatar
🏔️

oliverpool

🏔️
View GitHub Profile
@oliverpool
oliverpool / git-timetracker.sh
Last active December 7, 2016 12:10 — forked from kvz/git-timetracker.sh
You can then type git timetrack, git timetrack "1 day", git timetrack "1 month" --reverse (the arguments are positional, so the duration is required in this case) in any git repository!
# add it to your ~/.gitconfig as an alias:
[alias]
timetrack = "!f() { \
git --no-pager log \
--date=iso \
--since="${1-2 months}$" \
"${2}" \
--date-order \
--full-history \