2 ms·
How do you choose which changes go into a commit and which don't without an equivalent of a staging area?
by seba_dos1 4y ago
How do you choose which changes go into a commit and which don't without an equivalent of a staging area?
- somat 4y agoI don't use git a lot, so I am not all that familiar with it's work flow. But I think fossil assumes a change will go into the commit so you use the stash command to hide items you don't want in. while git assumes a change does not go in a commit so you use add on files that you want in. A bigger question is what to do when you only want specific chunks from the diff in your commit. I tend to faff around with stash, interactive sdiff and hand editing the patch when I need to dissect a chunk, a situation I feel could be better.
- reddit_clone 4y agoEmacs/Magit can do that sort of things easily. You can mark a region in a diff and add that to staging if you want. Magit is probably the best chrome for Git I personally think.