Create a gist now

Instantly share code, notes, and snippets.

Time logging with git flow
set -e
working_dir=$(pwd)
feature=$2
action=$1
now=$(date -u +"%Y-%m-%dT%H:%M:%SZ") # ISO8601
echo "[$now] $working_dir $action $feature" >> ~/.git-flow-feature.log
log-git-flow-feature FINISHED "$@"
log-git-flow-feature STARTING "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment