How do I get last commit date from git repository?

前端 未结 3 1125
甜味超标
甜味超标 2020-12-13 17:19

I need the last commit date in git. This means the latest update date in my program.

I used the command : $ git log -1 but this command will give me the

3条回答
  •  有刺的猬
    2020-12-13 17:42

    To get the last commit date from git repository in a long(Unix epoch timestamp)

    • Command: git log -1 --format=%ct
    • Result: 1605103148

    Note: You can visit the git-log documentation to get a more detailed description of the options.

提交回复
热议问题