Git see all tracked files

In this article let’s discuss about Git see all tracked files. Let’s go through the following methods without any delay.

Method 1:

git ls-tree -r main --name-only

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

git ls-tree -r master --name-only

Hope the above solution works.

Realted Posts : How to see which file git recognizes