Kevin Meredith
Kevin Meredith

Reputation: 41909

Show Git Log Details Past Certain Date

I've been working on an open-source project for the past 2 months.

So far I've fixed a bunch of bugs, and I'd like to send out my diffs for a code review. I've only committed my changes locally, rather than doing a "git push origin."

I used "git log -p *" to show all of my changes, but I'd prefer to only see changes past a certain date.

Is there a particular "git" command that will show all diffs only after a certain date?

Upvotes: 0

Views: 77

Answers (2)

patthoyts
patthoyts

Reputation: 33193

git log --since="datestring" will do. But if you are preparing patches for upstream, git format-patch <commit-ish>.. would be more normal. Check your projects contribution policy.

Upvotes: 1

Peter Lundgren
Peter Lundgren

Reputation: 9197

git log -p --after=<date>
git log -p --after=2012-09-01
git log -p --after="2 months ago"

Upvotes: 1

Related Questions