3 ms·
Are new files tracked by default? If I forget to ignore a bunch of build outputs, will that make my repo huge immediately?
by stavros 2y ago
Are new files tracked by default? If I forget to ignore a bunch of build outputs, will that make my repo huge immediately?
- stouset 2y agoThere’s a configurable cap on max file size to auto-add, IIRC. It defaults to something “reasonable”. If you do somehow add a terabyte of small files by accident, it’s still just git under the hood so you can make sure nothing active points at them and GC them.
- stavros 2y agoI'm thinking of something like node_modules, sounds like I'll need to not forget.
- steveklabnik 2y agoThose 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.
- stavros 2y agoYeah 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.