如何使用git获取修改代码的显示代码

时间:2012-11-14 15:15:18

标签: git

我有在本地提交的项目,现在我想看看项目中使用修改后的代码所做的更改,我希望输出如下:

  commit 54576760f3437ta3s457999d3ef606
  Author: Rajesh
  Date:   Tue Nov 13 1:40:55 2012 +0100

   class myFile {
      ....
      //modified code should getdisplayed
   }

我可以使用的命令是什么?

1 个答案:

答案 0 :(得分:2)

请参阅this

git show 54576760f3437ta3s457999d3ef606