suchen

Heim  >  Fragen und Antworten  >  Hauptteil

github - git commit的问题

git的命令 git commit -m '文本' 可以将引号中的文本作为描述,

请问有没有什么命令,可以直接在commit的时候,将当时的日期时间作为这个'文本'的内容,

比如我的hexo博客,如图所示的效果:

黄舟黄舟2834 Tage vor508

Antworte allen(2)Ich werde antworten

  • phpcn_u1582

    phpcn_u15822017-05-02 09:33:55

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

    Antwort
    0
  • 世界只因有你

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

    可以参考此连接
    http://www.cnblogs.com/MuyouSome/p/3290844.html
    建立commit模板

    Antwort
    0
  • StornierenAntwort