Get list of files changed before a particular date of last release or any commit ID

209 Views Asked by At

We are migrating from SVN to GIT and in SVN we have a revision number which we are using to get the list of files changed up to a given HEAD version using ant scripts.

How can we do this in a similar way for GIT?

Thanks in advance,
Devidutta Panda

1

There are 1 best solutions below

1
Potatojaisiladki On

If I have understood your question here then below should work

 git log --before='yyyy-mm-dd'

You can use --before or --after flag as your requirement. And for your specific requirement i feel this should work.

git log --after='yyyy-mm-dd' | git show <commit id> --no-patch