diff --git a/README.md b/README.md index ce7e45c..24a4ebe 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Show a Git logical variable.](#show-a-git-logical-variable) * [Preformatted patch file.](#preformatted-patch-file) * [Get the repo name.](#get-the-repo-name) +* [logs between date range](#logs-between-date-range) @@ -1032,5 +1033,10 @@ git format-patch -M upstream..topic git rev-parse --show-toplevel ``` +## logs between date range +```sh +git log --since='FEB 1 2017' --until='FEB 14 2017' +``` + diff --git a/tips.json b/tips.json index 5aae461..2daf36a 100644 --- a/tips.json +++ b/tips.json @@ -443,4 +443,7 @@ }, { "title": "Get the repo name.", "tip": "git rev-parse --show-toplevel" +}, { + "title": "logs between date range", + "tip": "git log --since='FEB 1 2017' --until='FEB 14 2017'" }] \ No newline at end of file