git: list all files added/modified on a day (or week/month…)

后端 未结 7 1965
情歌与酒
情歌与酒 2020-12-08 00:12

Given a period of time (e.g. a day, a week, a month), is it possible to list all files that were modified or added in this time?

7条回答
  •  春和景丽
    2020-12-08 00:53

    Try:

    git log --since="2 days ago" --until="1 days ago"

    If you omit --until you will get logs for last two days. You can also spesify weeks, months etc. You can also use git diff with --since and --until parameters. Work a little bit on output formatting and you are done.

提交回复
热议问题