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