Git 初始设置
来源:互联网 发布:软件编程培训机构地址 编辑:程序博客网 时间:2024/05/22 12:15
Git 初始设置
本地计算机里安装的 Git 初始设置1. 设置姓名和邮箱地址
$ git config --global user.name "Firstname Lastname"
$ git config --global user.email "your_email@example.com"
~/.gitconfig 文件内容
[user]
name = Firstname Lastname
email = your_email@example.com
想更改这些信息时,可以直接编辑这个设置文件。
strong@foreverstrong:~$ git config --global user.name "your_email"strong@foreverstrong:~$ git config --global user.email "your_email@163.com"strong@foreverstrong:~$ strong@foreverstrong:~$ cat ~/.gitconfig [user]email = your_email@163.comname = your_emailstrong@foreverstrong:~$
2. 提高命令输出的可读性
将 color.ui 设置为 auto 可以让命令的输出拥有更高的可读性。
$ git config --global color.ui auto
~/.gitconfig 文件内容
[color]
ui = auto
strong@foreverstrong:~$ git config --global color.ui autostrong@foreverstrong:~$ strong@foreverstrong:~$ cat ~/.gitconfig [user]email = your_email@163.comname = your_email[color]ui = autostrong@foreverstrong:~$
references
(日) 大塚弘记 著, 支鹏浩, 刘斌 译. GitHub入门与实践[M]. 北京:人民邮电出版社, 2015. 1-255
阅读全文
0 0
- git的初始设置
- Git 初始设置
- Git 初始设置姓名和地址
- git的初始设置(三)
- Git版本控制--Git的初始设置和使用(一)
- Git初始配置
- git submodule 初始更新
- Git本地初始配置
- Git 学习初始篇
- git初始用
- git版本控制初始
- s900 初始 出厂设置
- 设置初始归档模式
- flex4设置初始焦点
- fedora 12初始设置
- Struts2 初始的设置
- MFC初始窗口设置
- Centos 初始设置
- Web架构(二)PHP Socket与Java ServerSocket交互
- MAVEN学习笔记
- 日常刷题之金钩钓鱼(拉马车)的扑克牌游戏
- vue组件的初步理解
- 268. Missing Number
- Git 初始设置
- wordpress迁移站点
- Git 常用命令
- (四)流程控制
- C语言求1/n的和,
- 【python + PIL】图像相似度检测
- 我也开始记录我学编程的点点滴滴!
- 安卓x86虚拟机配置
- Mac sublime 编辑 html 快捷键没用的解决方法