1

If I type git status, i get the working tree status which included the files that have been modified.

I need to filter out for some specific file extension. Is this possible? (I'm using windows, and using the latest git version). For more information: using git bash.

Am working on a repository with more than 300 people, when I do git status, more than 1000 files will be there every week.

What is the solution here?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
V B
  • 75
  • 5
  • 1
    Do you not create any commits? `git status` only shows changes compared to the latest commit, and only the changes you made in your own copy of the repository. The 300 other people should have their own copies of the repository. – mkrieger1 Jan 12 '23 at 20:12

1 Answers1

1

You can list files per extension

git ls-files -- \*.rb

Or you can list your changes (if you made any) with

git status -- \*.rb
# or, faster, with just the filename
git diff-index --name-only @ -- \*.rb
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250