2 ms·
I do this so often just by adding temporary comments in the code and files that I'm debugging. If I get interrupted I can just `git diff` and see the entire cha
by beaugunderson 5y ago
I do this so often just by adding temporary comments in the code and files that I'm debugging. If I get interrupted I can just `git diff` and see the entire chain of files that got me where I was. When the problem is solved, I just `git checkout -p` and discard any of the temporary comments while keeping whatever the fix was (or inverting this, with `git add -p` and then `git checkout`).