Git 配置
来源:互联网 发布:淘宝店铺怎么过户朋友 编辑:程序博客网 时间:2024/05/15 13:35
使用Git的第一件事就是设置你的名字和email,这些就是你在提交commit时的签名。
$ git config --global user.name "Scott Chacon"$ git config --global user.email "schacon@gmail.com"
执行了上面的命令后,会在你的主目录(home directory)建立一个叫 ~/.gitconfig 的文件. 内容一般像下面这样:
[user] name = Scott Chacon email = schacon@gmail.com
译者注:这样的设置是全局设置,会影响此用户建立的每个项目.
如果你想使项目里的某个值与前面的全局设置有区别(例如把私人邮箱地址改为工作邮箱);你可以在项目中使用git config 命令不带 --global 选项来设置. 这会在你项目目录下的 .git/config 文件增加一节[user]内容(如上所示).
http://gitbook.liuhui998.com/2_2.html
0 0
- 自定义 Git - 配置 Git
- 【Git】Git配置
- git配置
- GIT 配置
- 配置 Git
- Git配置
- Git 配置
- git配置
- Git 配置
- git配置
- 配置 Git
- git配置
- Git配置
- git 配置
- git 配置
- git配置
- Git 配置
- Git 配置
- android 开源项目收集
- Binder机制1---Binder原理介绍
- 【HDU】1317 XYZZY spfa判负环+floyd求传递闭包
- 算法的力量-----开复李
- 【FIX协议】金融信息交换协议 - 0 - 简介
- Git 配置
- Binder机制3---Native层
- oracle execute 字符串语句中单引号的处理
- Linux下ps命令详解
- HDU4968Improving the GPA(分组背包)
- 转载 IEnumerable和IEnumerator 详解
- log4net的引用和配置
- KindEditor4.1.10支持从剪切板中复制的图像直接上传(Chrome,IE11,opera)
- 文件的上传与JQGrid