Home  >  Q&A  >  body text

gitlab commit 时间错误

我刚刚git push代码之后,去gitlab上面查看commit,出现如图所示,下面的日期是当前日期,而我刚刚push的日期却显示committed 3weeks ago,这是为什么?[黑人问号脸。难道我和同事们活在不同的时空???

我想大声告诉你我想大声告诉你2727 days ago1372

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:51:29

    I think it may be the reason why you merged the branches. Also, I'd like to know if you can confirm that the commit three weeks ago was the one you just committed? I think you may have read it wrong.

    reply
    0
  • ringa_lee

    ringa_lee2017-05-02 09:51:29

    Check whether the local time of the development environment is three weeks ago; git commitThe time is based on the time of your development environment;

    reply
    0
  • 某草草

    某草草2017-05-02 09:51:29

    Because 3 weeks ago corresponds to 11 Jan, 2017.
    And if you look at the number of commits written later, the top one is 1 commit, which corresponds to a merge branch operation, and the one below is 39commits.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:51:29

    I also think you may have read it wrong, because when you submit, the data from the remote warehouse will not be fetched locally, so the first submitted information you see is your own.

    But if you push, it will automatically detect and fetch the remote warehouse to the local one, so you will see some nodes submitted by others. (It's probably right in front of your submission, so you can look to the right of the submission node for submission author information).

    Hope it helps you.

    reply
    0
  • Cancelreply