Skip to content

Instantly share code, notes, and snippets.

@sondnm sondnm/git-cheatsheet.md
Last active Dec 11, 2017

Embed
What would you like to do?
Git cheatsheet

Retrieve logs in a specific period

git log --since 2017/12/01 --until 2017/12/07 --oneline

# Logs last week in Linux
git log --since  "`date -d '1 week ago' '+%Y/%m/%d'`" --oneline
# Logs last week in OSX
git log --since "`date -v-1w '+%Y/%m/%d'`" --oneline

Retrieve logs of a certain person

git log --author 'John Doe'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.