Re: Revert a single commit in a single file
- From
Dario Rodriguez <soft.d4rio@gmail.com>
- Date
- Feb 26, 2011, 00:27 UTC
- Message-ID
- <AANLkTi=y3CTu65WGKt=NEQLCAvSo=8TmU8BX5WVXCfyW@mail.gmail.com>
- In-Reply-To
- <AANLkTim2AYWqb4Q13Lk6BDC=TQtzFX9+595b2SsDpsnu@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 7 quoted lines
> We could have with <path>: > > Revert "some commit" > > This partially reverts commit <sha1>. Only the path <path> has > been reverted, which is X out of Y files changed in the original > commit.
Perhaps you want to do something like:
git revert <commit> <path1> <path2> ...
In such case the text "Only de path <path>..." makes no sense. I think something like:
Partial Revert (x/y) "some commit"
This partially reverts commit <sha1>
...whould be a better choice. Summaries will show that 'x' of the 'y' files committed in <sha1> have been reverted.
Cheers