Skip to content

Instantly share code, notes, and snippets.

@mono0926
Created August 11, 2013 04:33
Show Gist options
  • Select an option

  • Save mono0926/6203392 to your computer and use it in GitHub Desktop.

Select an option

Save mono0926/6203392 to your computer and use it in GitHub Desktop.
daily_report
echo "$(PROJECT=$(url=$(git config remote.origin.url) && url=${url#*github.com?} && echo ${url%.git}) && echo "hash | title" && echo "-----|------" && git log --since='12 hours ago' --author=$(git config user.email) --pretty="format:[%h](https://github.com/$PROJECT/commit/%h) | %s" | perl -nle "\$_ =~ s|#(\\d+)|[#\\1](https://github.com/${PROJECT}/pull/\\1)|g; print \$_")" | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment