Re: Revert a single commit in a single file
- From
Thomas Ferris Nicolaisen <tfnico@gmail.com>
- Date
- Feb 25, 2011, 14:38 UTC
- Message-ID
- <AANLkTikb_mWdgF4gf6FEBF=CLxLeefJJkRgDzEB5=3SO@mail.gmail.com>
- In-Reply-To
- <4D67A92D.2000300@drmicha.warpmail.net>
Ævar, Michael, thanks for the tips.
Dario: Yes, I understand the reasoning. It's not often a problem, and when it occurs there are ways to do it. I just thought I'd bring it up on the list cause it feels like expected behavior (other git commands behave correspondingly).
On Fri, Feb 25, 2011 at 2:05 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 5 quoted lines
> Note that you can also > > git show <commit> -- <path> | git apply -R > > to achieve a partial revert. That might be the easiest route to take.
Indeed it is. Neat command, thanks again!