List all Modified File Names with Git

     Sometime we need to pull up data from specific time span. Suppose, we need to see all the changed files prior to a deployment. Well, its possible with source control. Git has some commands that can help you with that. Here are some of those..
First command lists every single modified file names from specific date to now..
git whatchanged --since '12/01/2016' --oneline --name-only --pretty=format: | sort | uniq

Second command lists modified file names from prior days..
git log --since="4 day ago" --name-only --pretty=format: | sort -u


Third command lists modified file names from specific interval..
git whatchanged --since '12/01/2016' --until '12/06/2016' --oneline --name-only --pretty=format: | sort | uniq

No comments:

Post a Comment