4 ms·
It's certainly an understandable point of confusion. It's not clear to me if the current behavior was actually intentional, or just an byproduct of implementati
by frenchyatwork 7y ago
It's certainly an understandable point of confusion. It's not clear to me if the current behavior was actually intentional, or just an byproduct of implementation.
If you add a file, then modify it, and then commit it, you're old version gets committed. That caused me a bit of confusion back in the day.
- boustrophedon 7y agoThe behavior is pretty intentional - you can use `git add -p` explicitly to only add parts of a given file to the index.
- tonyedgecombe 7y agoA mistake I seem to make fairly often. That or not adding new files in the first place.