Git show files that were changed in the last 2 days

前端 未结 5 1788
小蘑菇
小蘑菇 2021-01-30 02:56

How can I have a list with all the files that were changed in the last 2 days? I know about

git log --name-status --since=\"2 days ago\" 

but

5条回答
  •  无人共我
    2021-01-30 03:31

    git log --pretty=format: --name-only --since="2 days ago"
    

    if some files duplicate in multiple commits, you can use pipe to filter it

    git log --pretty=format: --name-only --since="2 days ago" | sort | uniq
    

提交回复
热议问题