← Back to context

Comment by da39a3ee

4 years ago

This tool Dura is totally unnecessary for people who are comfortable with git.

People are thinking about commit wrongly. You should commit all the time, and make use of branches liberally, and push branches to a remote for backup. Then, you should form your “permanent” commits from that work. The thing is, you have to get comfortable with git. For example, one common move is:

1. Commit everything

2. Make a temp branch (remember that “branches” are just labels for a commit; they cost nothing)

3. Switch back to the first branch

4. Use git reset to uncommit the last few commits

5. Clean up the code and commit it properly, with a good commit message

6. Run tests and check the diff from your temp branch to check you didn’t make a mistake when cleaning up