Git 操作(使用git-commit-template)

1. 创建模板文件

vim ./git-commit-templete

增加修改内容。

2. 设置git使用这个模板

复制代码
# 只对当前仓库生效
git config commit.template ~/.git-commit-template

# 或者对所有仓库生效(全局)
git config --global commit.template ~/.git-commit-template

3. 验证配置

复制代码
git config commit.template

4. 删除模板

复制代码
git config --unset commit.template   # 当前仓库
# 或
git config --global --unset commit.template  # 全局
相关推荐
慕容引刀4 小时前
或许你真的需要这个Git神器:让团队提交文案终于对齐了
人工智能·git·vscode·自然语言处理·github
jjh+++(求关注版)4 小时前
git-命令速查清单
git
yanlaifan15 小时前
git版本管理工具中的回车换行转换逻辑
git
小僧景贤1 天前
【零门槛入门】嵌入式新手极简 Git 上手教程
git·固件开发·嵌入式版本管理
克里斯蒂亚诺更新1 天前
云效和IDEA关于git的相通使用
git
Gavynlee1 天前
Git 操作问题排查与解决方案记录(Gitee 实战)
git·elasticsearch·gitee
邪修king1 天前
Re:Linux系统篇(十):从零上手 Git + GitHub(Ubuntu 环境实操完整版|个人代码归档必备)
linux·git·github
李可以量化1 天前
Redis 从了解到精通(三)下:性能基准测试与量化场景性能避坑指南
redis·git·python·量化交易·qmt·ptrade
青 春 记 忆2 天前
零基础入门Python11|Git实战:为任务管理器建立版本历史
开发语言·git·vscode·python·python3.11