【问题标题】:How to open files in from previous commit in git? [duplicate]如何在git中打开以前提交的文件? [复制]
【发布时间】:2016-01-26 04:15:11
【问题描述】:

如果我想从 git 中的历史提交编辑文件...如何访问文件来自特定提交的方式?

【问题讨论】:

    标签: git smart-commits


    【解决方案1】:

    git checkout commit_hash -- full/path/of/file

    【讨论】:

      猜你喜欢
      • 2012-02-24
      • 2021-06-20
      • 2019-08-21
      • 2013-05-21
      • 1970-01-01
      • 2014-01-26
      • 1970-01-01
      • 2020-06-19
      • 2012-03-20
      相关资源
      最近更新 更多