也可以另外使用git show "commitid"
nelsonchung@ubuntu:~/tmp/TestGitRevert$ git show 27dc6863e1e4c836ae9022f0ec0dd7a5fb17b1d9
commit 27dc6863e1e4c836ae9022f0ec0dd7a5fb17b1d9
Author: Nelson Chung
Date: Tue Jan 25 18:31:52 2011 +0800
add 12
diff --git a/record b/record
index 3bb459b..08fe19c 100644
--- a/record
+++ b/record
@@ -9,3 +9,4 @@
9
10
11
+12
Refrence:
http://git-scm.com/documentation
沒有留言:
張貼留言