0

I'd like to know if it's possible to know if a file existed inside a folder using git commands or using the github tools.

I checked using the git log, It shows the commits log, but it doesn't have information about which files were affected.

  • `git log filename.txt` will show you the history for `filename.txt`, regardless of whether it currently exists – scrowler Feb 10 '20 at 21:56
  • 2
    Does this answer your question? [How can I list all the deleted files in a git repository?](https://stackoverflow.com/questions/6017987/how-can-i-list-all-the-deleted-files-in-a-git-repository) – evolutionxbox Feb 10 '20 at 22:05

1 Answers1

0

This will allow you to see the directories in given branch.

git ls-tree -d origin/master:<remote_dir><remote_subdir>
HNK123
  • 1
  • 3