Hacker News new | ask | show | jobs
by stavros 541 days ago
I'm thinking of something like node_modules, sounds like I'll need to not forget.
1 comments

Those are usually in your gitignore, right?

Also, this behavior (automatically tracking) is configurable. I thought I would hate it but I actually really like it.

Yeah they usually are, I'm sure it's great because I add files more often than I ignore, but I need to be careful with the temporary files I write left and right in the repo dir during development.
Why? You can easily remove them if they’re accidentally added.
Just because I might not remember/notice, and I don't want sensitive data to be committed by accident if I put an env var on disk for some reason.
If you check `jj status` regularly and/or use `jj split` to build up your commits (like `git add -p`) then you’ll notice. They might end up in your local repo (until a gc) at worst.
Ah, that's not too bad then, thank you!