git 配置提交模板
原文鏈接:http://www.rzrgm.cn/ysmc/p/16512702.html
git 配置文件
1. 拷貝倉庫 .commit_msg_template.txt 文件到當前用戶根目錄下 C:\Users\[用戶名]\.commit_msg_template.txt
2. 配置 git 全局配置文件 C:\Users\[用戶名]\.gitconfig (此文件為隱藏文件)
3. 更新 commit 配置項
[commit]
template = c:/Users/[用戶名]/.commit_msg_template.txt
注意原始文件不是 . 開頭拷貝到跟目錄下為 . 開頭文件名(點號開頭文件默認為隱藏文件)
Fork 配置步驟
1. 打開要配置的倉庫
2. 點擊菜單欄第二個 倉庫 菜單(Repository)
3. 下拉菜單中選中最后一個菜單項 倉庫設置 子菜單(Settings for this repository)
如下圖所示

4. 切換到 提交模板 面板(Commit Template)
5. 勾選使用 全局配置文件 (Use global git configuration file)
6. 提交代碼時,自動在提交說明框中生成模板

本文來自博客園,作者:一事冇誠,轉(zhuǎn)載請注明原文鏈接:http://www.rzrgm.cn/ysmc/p/16512702.html

浙公網(wǎng)安備 33010602011771號