For this example, I made a structure like this:
touch ron .gitignore
echo generated-file > .gitignore
git init
git add . && git commit -m"Initial commit"
touch generated-file
echo modification > ron
touch untracked-file
git status --ignored=matching
So in my working tree, I have this generated-file
file.
To "reset" my repository, I can remove the directory and clone the repository.
Is there a command that does the same?
I tried combinations of git rm $(git status --ignored=matching)
.