Revert a single commit in a single file
- From
Thomas Ferris Nicolaisen <tfnico@gmail.com>
- Date
- Feb 25, 2011, 10:34 UTC
- Message-ID
- <AANLkTikpdGfAAUMu_7DfA-GRUv7gKn5Yc9RnJwo2iKoM@mail.gmail.com>
I tried asking the same question on the "newbie" list some time ago:
http://groups.google.com/group/git-users/browse_thread/thread/d562b4eeac016711
Basically, when I go
> git revert <commit> <path>
.. my expectation was that a new commit would be made reverting the changes from the old commit, but only for specified path/file.
Maybe it's a bit of a corner-case, but still would be nice to have once in a while. What do you think?