5 ms·
> Furthermore, it's easy to create a commit of inconsistent code - since you can commit file changes in separate commits. Actually, that's a feature. You can
by eru 16y ago
> Furthermore, it's easy to create a commit of inconsistent code - since you can commit file changes in separate commits.
Actually, that's a feature. You can make finer grained commits this way. Use rebasing (or amending a commit, when you are just putting in the second commit) to make your changes atomic, when they need to be atomic.
Your repository isn't always in a consistent state. There's value in keeping inconsistent in between states---and git allows you to do that, but also allows you to clean up, after you're finished.
(Of course this creates an alternate history.)