下载安装包
下载网址:
- Windows: https://gitforwindows.org/
- Mac:https://sourceforge.net/projects/git-osx-installer/
- 百度网盘:
链接:https://pan.baidu.com/s/1UdvsDioWchjd-oCMeTFR0g
密码:ddta
说明:
我的电脑是Windows7系统,所以我下面介绍的是Git在Windows环境下的安装过程。希望会对你有所帮助。
第1步 双击Git-2.18.0-64-bit.exe如下图,开始安装,点击Next

第2步 根据自己的需要选择安装目录,如下图

建议,安装目录不要有汉字,养成好习惯吧毕竟!
第3步 根据个人需要进行相关设置

说明:
(1)图标组件(Addition icons) : 选择是否创建桌面快捷方式。
(2)桌面浏览(Windows Explorer integration) : 浏览源码的方法,使用bash 或者 使用Git GUI工具。
(3)关联配置文件 : 是否关联 git 配置文件, 该配置文件主要显示文本编辑器的样式。
(4)关联shell脚本文件 : 是否关联Bash命令行执行的脚本文件。
(5)使用TrueType编码 : 在命令行中是否使用TruthType编码, 该编码是微软和苹果公司制定的通用编码。
(6)每天都进行更新检查
第4步 创建一个开始目录文件夹(建议不创建)

第5步 选择默认的编辑器(个人喜好决定,我是默认的)

第6步 设置环境变量(建议选默认)

说明:
选择使用什么样的命令行工具,一般情况下我们默认使用Git Bash即可:
(1)Git自带:使用Git自带的Git Bash命令行工具。
(2)系统自带CMD:使用Windows系统的命令行工具。
(3)二者都有:上面二者同时配置,但是注意,这样会将windows中的find.exe 和 sort.exe工具覆盖,如果不懂这些尽量不要选择。
第7步 选择HTTPS传输后端(默认就行)

第8步 选择提交的时候换行格式

说明:
(1)检查出windows格式转换为unix格式:将windows格式的换行转为unix格式的换行再进行提交。
(2)检查出原来格式转为unix格式:不管什么格式的,一律转为unix格式的换行再进行提交。
(3)不进行格式转换 : 不进行转换,检查出什么,就提交什么。
第9步 配置终端仿真器与Git bush一起使用(选择默认选项就行)

第10步 配置额外选项(默认)

第11步 点击Install,进行安装(速度很快)

第12步 完成安装

网友评论