Related questions
How do I "un-revert" a reverted Git commit?
Given a change that has been committed using commit, and then reverted using revert, what is the best way to then undo that revert?
Ideally, this should be done with a new commit, so as to not re-write history.
Git undo changes in some files
While coding I added print statements into some files to keep track of what was going on.
When I am done, is it possible to revert changes in some files, but commit the file I actually worked on?
Say I …