How do I “un-revert” a reverted Git commit?

git cherry-pick <original commit sha>Will make a copy of the original commit, essentially re-applying the commit Reverting the revert will do the same thing, with a messier commit message:git revert <commit sha of the revert> Either of these ways will allow you to git push without overwriting history, because it creates a new commit after the revert.When … Read more

git status shows modifications, git checkout — doesn’t remove them

There are multiple problems the can cause this behaviour: Line ending normalization I’ve had these kinds of problems too. It comes down to git automatically converting crlf to lf. This is typically caused by mixed line endings in a single file. The file gets normalized in the index, but when git then denormalizes it again … Read more