windows下git的下载、安装以及常用命令
下载
1.git的下载地址https://git-scm.com/download/win,访问网页后如下图,选择自己需要的版本,
https://pan.baidu.com/s/1iTFi5s9mjuJq3gRInqGGxw,也可直接到云盘获取
2.安装
步骤很简单,忽略。不清楚请可参考:
https://blog.****.net/orange228/article/details/79365795
安装后,检测git版本
git --version //查看git的版本信息
git config --global user.name //获取当前登录的用户
git config --global user.email //获取当前登录用户的邮箱
***********************万年分隔符********************************
/* 如果刚没有获取到用户配置,则只能拉取代码,不能修改 要是使用git,你要告诉git是谁在使用
-
git config --global user.name 'userName' //设置git账户,userName为你的git账号,
-
git config --global user.email 'email'