Git是什么?
git是分布式版本控制系统;SVN是集中式的版本控制系统;
Git配置
- 为你这台机器配置用户名和Email地址
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
–global参数,表示你这台机器上所有的Git仓库都会使用这个配置
- 为你某个仓库配置用户名和Email地址
git config user.name "Your Name"
git config user.email "email@example.com"
- 可以使用以下命令查询配置
git config --list
- 修改用户名和邮箱
可以继续执行以下命令进行覆盖
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
也可以使用以下命令修改
git config --global --replace-all user.name "Your Name"
git config --global --replace-all user.email "email@example.com"