自学内容网 自学内容网

git(1) -- 环境配置

1. 配置文件

编辑~/.gitconfig文件,内容如下。

[user]
email = xflming@163.com
name = xflm
[core]
editor = vim
[color]
diff = auto
status = auto
branch = auto
ui = true
[commit]
template = /home/xflm/configuser/git-commit.template
[diff]
tool = bc4
[difftool]
prompt = false
[difftool "bc4"]
cmd = bcompare $LOCAL $REMOTE

编辑/home/xflm/configuser/git-commit.template文件,内容如下,这里是定义一个提交的模板。

DTS: mchip
Discription:

Team: m
Bugfix or Feature: feature

原文地址:https://blog.csdn.net/qq_37858281/article/details/142676600

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!