Finding the date/time a file was first added to a Git repository

后端 未结 2 1952
时光取名叫无心
时光取名叫无心 2021-02-01 00:58

Is there a simple Git command to determine the \"creation date\" of a file in a repository, i.e. the date it was first added?

It would be best if it can determine this e

2条回答
  •  眼角桃花
    2021-02-01 01:28

    git log --format=%aD | tail -1

    With this command you can out all date about this file and extract the last

提交回复
热议问题