git的安装和配置
Git是分布式版本管理工具
1.下载git安装包
官网下载网址:https://git-scm.com/downloads
2.安装git
next。。。
3.检测git是否安装成功
cmd->git --version
->打印版本号
【出现版本号即安装成功】
4.配置git的用户和邮箱(设置个人信息)
【–global :全局变量】
- 设置用户姓名
git config --global user.name "姓名"
- 设置可以联系的邮箱地址
git config --global user.email "联系邮箱"
- 查看用户名和地址
git config user.name
git config user.email
或【–global :全局变量】
git config --global user.name
git config --global user.email
- 修改用户名和地址(与设置是一样的命令,更新信息)
git config --global user.name “your new name”
git config --global user.email “your new email”