【问题标题】:How to get display code that are modified code using git [duplicate]如何使用git获取修改代码的显示代码[重复]
【发布时间】:2012-11-03 02:41:16
【问题描述】:

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

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

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

我可以使用什么命令?

【问题讨论】:

    标签: git


    【解决方案1】:

    this

    git show 54576760f3437ta3s457999d3ef606
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-13
      • 2023-04-07
      • 2022-08-09
      • 1970-01-01
      • 2015-07-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多