Note that my diff solution above is not correct. It should be diff -R Z Z^
(diff between two revisions).
Eventually, I took this up in the main git list:
Conclusion was that it's a good idea to support git revert taking a path
In the mean while, here's a nice oneliner for reverting a change in one
git show <commit> -- <path> | git apply -R
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at