1.3 安装 Git

如果要克隆 GoChat 代码库,Git 工具安装和使用可参考 Pro Git 这本书。

Git 安装完成后,需要进行简单配置:

  • 配置 user.name
git config --global user.name "your-user-name"

# 确认已设置成功
git config --global user.name
# 输出
# your-user-name
  • 配置 user.email
git config --global user.email "your-email"

# 确认已设置成功
git config --global user.email
# 输出
# your-email