2.3 安装
最近的Mac中都预装了Git。而各版本的Linux中也都以软件包(Package)的形式提供给用户了。
2.4 初始设置
设置姓名和邮箱地址
git config --global user.name "<your name>"
git config --global user.email "<your email name>"
为本地git设置在github网站上注册用户是填写的用户名和邮箱地址。
提高命令的可读性
git config --global color.ui auto
将color.ui设置为auto可以让命令的输出拥有更高的可读性。
网友评论