查看版本之间的差异

使用命令git diff commit_id1 commit_id2
[root@git git_test]# git diff 2b9e2589379c5ca45 9cb4509991533d45b
diff --git a/git_test_file b/git_test_file
index bd72510..394fca6 100644
--- a/git_test_file
+++ b/git_test_file
@@ -1,2 +1 @@
fuchao
-test

你可能感兴趣的:(查看版本之间的差异)