0

I wanted to know the files which got changed in my gerrit repo for a particular day. Suppose If I run the command to fetch at 11:00 PM in the night It should fetch all the file names changed in a particular repo from 12:00 AM to 11:00 PM in the night.

I tried the below command but its fetching only last commit details :-

git log --name-only -n 1 HEAD~1..HEAD

Any Idea ?

Arpit Gupta
  • 125
  • 1
  • 1
  • 9
  • https://stackoverflow.com/questions/1161609/how-can-i-get-the-diff-between-all-the-commits-that-occurred-between-two-dates-w – laplasz Nov 08 '17 at 12:21

1 Answers1

1

You should use "git diff" instead of "git log":

git diff --name-only HEAD~1..HEAD