Ignore files in Git without adding them to .gitignore
shramko.dev
shramko.dev
Also, that suggestion about how to avoid committing temporary changes is not great. Just run a git restore, instead of applying strange settings to your entire repo and then wasting time trying to debug whatever went wrong after forgetting that you made that change to git behavior for a single file.