readme_git.txt 484 B

1234567891011
  1. 客户端首先要注册全局用户名和邮箱
  2. 注册:
  3. git config --global user.name "Your Name"
  4. git config --global user.email "your.email@example.com"
  5. 使用--global选项设置的用户名和邮箱是全局的,会应用于你的所有Git仓库。如果你只想为某个特定的仓库设置用户名和邮箱,可以在该仓库的根目录下使用不带--global参数的命令进行配置。
  6. 注册后查看
  7. git config --global user.name
  8. git config --global user.email