0

Im beginner user to git and I need to list all files has been deleted in a project.I want either there names or the total number of each one(ex. total number of files have been deleted) in a period of time. another example ( I want to see all files deleted in the past two years in a project ) Im using Mac iOS and git on my terminal. I tried this "git log --diff-filter=D --summary | grep delete" but how can I add timestamp I tried ls files command but I do not know how I can used it correctly. Thank you

user8863554
  • 167
  • 1
  • 12
  • You're asking a few questions here. I think `git ls-files` is the answer to one of them, I think `git log --diff-filter=... --format=...` probably answers your other one. Try to limit to one question per question :) – anthony sottile Feb 03 '18 at 03:56
  • thanks, I changed it to one question – user8863554 Feb 03 '18 at 04:11

2 Answers2

1

Try git status in terminal for a list of files to be committed. Also try git commit -a for a list of files that have been modified if you haven't committed them yet.

1

Try git log to see all your commits.

And if you do a git show comit it will show u the changes that happened for that commit. That might be what you're looking for.

Try this git log --diff-filter=D --since="2018-02-01"

psj01
  • 3,075
  • 6
  • 32
  • 63