search

Home  >  Q&A  >  body text

github - git commit problem

The git command git commit -m '文本' can use the text in quotation marks as a description,

Is there any command that can directly use the current date and time as the content of this '文本' when committing,

For example, my hexo blog has the effect as shown in the picture:

黄舟黄舟2813 days ago494

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-02 09:33:55

    git commit -m "Site updated: $(date)"

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-02 09:33:55

    You can refer to this link
    http://www.cnblogs.com/MuyouSome/p/3290844.html
    Create a commit template

    reply
    0
  • Cancelreply