How to get git to show commits in a specified date range for author date?
Maybe I’m missing something, but wouldn’t this be enough? git log –pretty=format:”%ad – %an: %s” –after=”2016-01-31″ –until=”2017-03-10″ –author=”John Doe” See also here
Maybe I’m missing something, but wouldn’t this be enough? git log –pretty=format:”%ad – %an: %s” –after=”2016-01-31″ –until=”2017-03-10″ –author=”John Doe” See also here
Try git rev-list –objects –all Edit Josh made a good point: git rev-list –objects -g –no-walk –all list objects reachable from the ref-logs. To see all objects in unreachable commits as well: git rev-list –objects –no-walk \ $(git fsck –unreachable | grep ‘^unreachable commit’ | cut -d’ ‘ -f3) Putting it all together, to really … Read more
Preferred Way (because it’s a plumbing command; meant to be programmatic): $ git diff-tree –no-commit-id –name-only -r bd61ad98 index.html javascript/application.js javascript/ie6.js Another Way (less preferred for scripts, because it’s a porcelain command; meant to be user-facing) $ git show –pretty=”” –name-only bd61ad98 index.html javascript/application.js javascript/ie6.js The –no-commit-id suppresses the commit ID output. The –pretty argument … Read more
git diff –name-only SHA1 SHA2 where you only need to include enough of the SHA hash to identify the commits. You can also do, for example git diff –name-only HEAD~10 HEAD~5 to see the differences between the tenth latest commit and the fifth latest (or so).
Preferred Way (because it’s a plumbing command; meant to be programmatic): $ git diff-tree –no-commit-id –name-only -r bd61ad98 index.html javascript/application.js javascript/ie6.js Another Way (less preferred for scripts, because it’s a porcelain command; meant to be user-facing) $ git show –pretty=”” –name-only bd61ad98 index.html javascript/application.js javascript/ie6.js The –no-commit-id suppresses the commit ID output. The –pretty argument … Read more