Question about git revert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I did a search of the archives for this mailing list, and couldn't
find anything applicable.

I am having the same problem as Joshua Cheek.  He asked this question
on StackOverflow about a month ago.

http://stackoverflow.com/questions/2938301/git-remove-specific-commit

There are no merges involved.  I would be perfectly happy having
another commit in my history which documents the reverting of a prior
commit.

The problem seems to stem from git-revert not properly calculating the
"cleanness" of the prior commit, and incorrectly thinking that later
commits depend on the to-be-reverted commit.

I have seen other web sites which suggest using git to manually
generate a diff, and then applying it as a reverse patch, but that
seems like a kludge.

What is the best solution for this use case?

Thanks,
Hal
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]