I have modified several files for debugging purposes. I don't want to add them to .gitignore
because they are valid files that need to be in the repo. However, while debugging I need to make settings changes that I don't want to check in. Right now I am using git restore --staged
after running git add -all
to remove these files from my commit.
Is there a better way to do this?