转自:http://smilejay.com/2012/08/generate-a-patch-from-a-commit/
在看一个Bugzilla上Xen的一个bug时,提到要revert掉Dom0(用linux.git)中一个commit,当然git是有revert命令的,如下所示。
[root@jay-linux linux.git]# git revert cd9db80e5257682a7f7ab245a2459648b3c8d268 warning: too many files (created: 2321 deleted: 1460), skipping inexact rename detection Finished one revert. [detached HEAD aab6b2f] Revert "xen/pciback: Support pci_reset_function, aka FLR or D3 support." 2 files changed, 3 insertions(+), 39</