Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/4216c6f1e4ea00c5b4926647fdb061cc to your computer and use it in GitHub Desktop.
Save dacr/4216c6f1e4ea00c5b4926647fdb061cc to your computer and use it in GitHub Desktop.
git cheat sheet / published by https://github.com/dacr/code-examples-manager #2ef9e006-e7c3-4387-8e41-f30a62b79aac/d11ff0edbe117aa45a1864a800535459c147e1d4

git cheat sheet

get file added/created git date in ISO8601

git log --diff-filter=A --follow --format=%aI -1 -- somefile

temporary credential storage

git config credential.helper 'cache --timeout=3600'

number of commit on a given date period

git rev-list --count --since="May 31 2020"  --before="May 31 2021" --all --no-merges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment