【问题标题】:Track a (once been deleted) file [duplicate]跟踪(曾经被删除的)文件[重复]
【发布时间】:2017-04-01 19:58:21
【问题描述】:

这是我的情况: 已添加、删除并再次添加文件(同名)。

如何在最近添加时间戳之前跟踪时间戳?

file:       file.c ---> null ---> file.c
status:     added     removed     added
traceable:    ?          ?          ✓

我使用tig,但对任何git 接口开放。

【问题讨论】:

  • 跟踪时间戳是什么意思?在 Git 中,文件没有时间戳。 提交有时间戳(每个两个),但文件没有。

标签: git version-control tig


【解决方案1】:

有很多方法可以跟踪提交时间戳,您可以在 bash 中使用以下任何命令:

git whatchanged file.c
git show file.c
git log file.c
git log -p file.c

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-09-03
    • 2018-07-21
    • 2016-02-27
    • 2014-07-02
    • 2020-05-10
    • 1970-01-01
    • 2013-11-17
    • 2011-09-24
    相关资源
    最近更新 更多