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 this will show me ids, dates and commit messages. All I need is the list of the file names which were changed.
Is that possible with git?
Find what file changed in a commit To find out which files changed in a given commit, use the git log --raw command.
The most basic and powerful tool to do this is the git log command. By default, with no arguments, git log lists the commits made in that repository in reverse chronological order; that is, the most recent commits show up first.
Git file History provides information about the commit history associated with a file. To use it: Go to your project's Repository > Files. In the upper right corner, select History.
Viewing a list of the latest commits. If you want to see what's happened recently in your project, you can use git log . This command will output a list of the latest commits in chronological order, with the latest commit first.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With