List all the files that ever existed in a Git repository

Question:

Do you have a clean way to list all the files that ever existed in specified branch?

Answer:

This is a simplified variation of Strager’s solution:


Edit: Thanks to Jakub for teaching me a bit more in the comments, this version has a shorter pipeline and gives git more opportunity to get things right.

Leave a Reply