git config --global commit.template [模板文件路径]
例如:git config --global commit.template /Users/apple/Desktop/testyz (testyz就是模板文件。建议将模板文件放在用户名下)
git彻底删除某次提交:
gitreset--hard HEAD~1
git push --force 将本次变更强行推送至服务器
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
网友评论