The global gitignore is super useful! I add a “.x” entry to it so that I can create scripts, drafts, etc in a “.x” folder in any of my projects.
Wrote more details about how I do this here: https://alexplescan.com/posts/2022/04/17/the-x-files/
Wrote more details about how I do this here: https://alexplescan.com/posts/2022/04/17/the-x-files/
I'd just been bumping into this problem, but hadn't conceptualized such an elegant solution, so kept fumbling around, adding/moving things, futzing around with git way more than I wanted to.
Thank you!