Git 2.14.1 Setup for Windows
2017-09-11 本文已影响0人
栗子雨
下载地址
https://git-for-windows.github.io
Windows安装2.14.1
1.创建快捷方式,画圈是重点
![](https://img.haomeiwen.com/i2461802/c8d6a17a992c1709.png)
2.配置环境变量,以便能够在全局使用git命令
![](https://img.haomeiwen.com/i2461802/d0cee1e7182094f5.png)
3.HTTPS传输协议:使用OpenSSL库
![](https://img.haomeiwen.com/i2461802/41a13516a8b0e28e.png)
4.默认windows
![](https://img.haomeiwen.com/i2461802/3da61ec6747d1cc2.png)
5.使用MinTTY:
Git的Windows客户端,会自带一个叫MinGW的Linux命令行工具,
可以执行简单的shell命令,与cygwin功能类似,仅此而已。
而在MinGW命令行窗口中,执行命令“mintty”既可以
打开mintty窗口,再次可以使用ssh命令登录linux服务器。
![](https://img.haomeiwen.com/i2461802/ba790a8937b028df.png)
6.额外配置,默认
![](https://img.haomeiwen.com/i2461802/cbb59afffbb14081.png)
7.配置git账号和邮箱
用户名和邮箱地址的作用:
用户名和邮箱地址是本地Git客户端的一个变量,不随git库而改变。
每次commit都会用用户名和邮箱纪录。github的contributions统计就是按邮箱来统计的。
配置命令:
$git config user.name --global user.name "xxxx"
$git config user.name --global user.email "xxxx"
查看命令:
$git config user.name
$git config user.email
修改命令(同配置):
$git config user.name --global user.name "xxxx"
$git config user.name --global user.email "xxxx"
PS:原文http://blog.csdn.net/s740556472/article/details/77623453
只是做个学习记录。。。