0

Today is December 16, 2017. I just screen-snipped this GitHub commit log: Screen Snip from GitHub commit log

If today is 12/16, why does a commit from 12/14 appear as 5 days ago?

einpoklum
  • 118,144
  • 57
  • 340
  • 684
nicomp
  • 4,344
  • 4
  • 27
  • 60

2 Answers2

4

Perhaps the commits were made 5 or 7 days ago, but you only git pushed them to GitHub on the 14th.

einpoklum
  • 118,144
  • 57
  • 340
  • 684
2

As @einpoklum has mentioned, you committed and pushed on different days.

Although it is not advised to do it frequently, if you must change the date, then you can do so by passing the --date flag when running git commit. For information on formatting, you can check out this link, what-is-the-format-for-date-parameter-of-git-commit

Joseph K.
  • 1,055
  • 3
  • 23
  • 46