2 ms·
To add to kenmazy's reply: another way git allows you to have "checkpoint commits" is to create a new branch. Commit against this branch all you want. Then when
by city41 15y ago
To add to kenmazy's reply: another way git allows you to have "checkpoint commits" is to create a new branch. Commit against this branch all you want. Then when you are done with your work, return to the main branch and do a "git merge -squash <yourworkbranch>". git will pull all the commits you did in the feature branch into the main branch's index. You are then free to commit the whole shebang into the main branch as one commit, with whatever commit message you want.
I've never used Mercurial, so I don't know if it has any equivalent to that.
- pgroves 15y agoI suppose this (and the other responses) is about what I would expect: it's possible in Git if you know what you're doing. Based on my very limited Git experience, I would have expected it to take more flags to accomplish :) (It probably is possible in Mercurial in some way, too.) But then that gets back to the original problem: how do you get people to do that so github watch lists only contain worthwhile comments?
- city41 15y agoYeah, it's a problem. Either we need to get better at our source control tools, or our tools need to become simpler to use. I'm not sure which is the right approach.