美文网首页
Git commit template 模板设定

Git commit template 模板设定

作者: yazho | 来源:发表于2017-08-07 16:52 被阅读0次

    git config --global commit.template  [模板文件路径]

    例如:git config --global commit.template  /Users/apple/Desktop/testyz  (testyz就是模板文件。建议将模板文件放在用户名下)

    git彻底删除某次提交:

    gitreset--hard HEAD~1

    git push --force 将本次变更强行推送至服务器

    相关文章

      网友评论

          本文标题:Git commit template 模板设定

          本文链接:https://www.haomeiwen.com/subject/ijndbttx.html