1.下载 git:https://git-scm.com/
1
2
安装教程:
阅读GNU通用公共许可证
1
选择安装地址
2
选择组件(应该安装哪些部件)选择要安装的组件,清除不想安装的组件,当您准备继续时,单击next
组件说明:
additional icons -- on the desktop
图标组件:勾选后安装会在桌面生成Git的快捷方式
windows explorer integration -- Git Bash Here
浏览源码的方式-Git基本:Git的基本必选
windows explorer integration -- Git GUI Here
浏览源码的方式-Git用户图形界面:更好的UI体验 (高级的浏览方法使用git-cheetah plugin插件)
Git LFS(large file support)
大文件支持:有上限(大概1G)需要增加可以付费
Associate .git* configuration files with the default text editor
将.git*配置文件与默认文本编辑器关联
Associate .sh files to be run wirh Bash
关联要在Bash中运行的.sh文件( 关联shall脚本文件)
Use a TrueType font in all console windows
在所有控制台窗口中使用TrueType字体
Check daily for Git for Windows updates
每天检查Git的Windows更新
3
Select Strat Menu Folder -- 创建开始菜单目录
Don't create a Start Menu folder -- 不创建启动文件夹(不勾选)
4
choosing the default editor used by Git -- 选择Git使用的默认编辑器
which editor would you like Git to use -- 您希望Git使用哪个编辑器
1.Use the Nano editor by default
默认使用 Nano 编辑器
2.Use Vim (The ubiquitous text editor) as Git's default editor
使用 Vim(无处不在的文本编辑器) 作为 Git 的默认编辑器
3.Use Notepad++ as Git's default editor
使用 Notepad++ 作为 Git 的默认编辑器
4.Use Visual Studio Code as Git's default editor
使用 Visual Studio Code 作为 Git 的默认编辑器
5.Use Visual Studio Code Insiders as Git's default editor
使用 Visual Studio Code Insiders 作为 Git 的默认编辑器
6.Use Sublime Text as Git's default editor
使用Sublime Text作为Git的默认编辑器
7.Use as Git's default editor
使用Atom 作为Git的默认编辑器
8.Select other editor as Git's default editor
选择其他编辑器作为Git的默认编辑器
5
Adjusting your PATH environment -- 调整路径环境
How would you like to use Git from the command line -- 您希望如何从命令行使用Git
1.Use Git from Git Bash only -- 只从Git Bash中使用Git
this is the safest choice as your PATH will not be modified at all.You will only be able to use the Git command line tools from Git Bash(这是最安全的选择,因为您的路径根本不会被修改。您将只能使用Git Bash中的Git命令行工具)
2.Git from the command line and also from 3rd-party software -- 来自命令行以及第三方软件的Git
This option is considered safe as it only adds some minimal Git wrappers to your PATH to avoid duttering your environment with optional Unix tools. You will be able to use Git from Git Bash,the Command Prompt and the Windows(这个选项被认为是安全的,因为它只向路径添加了一些最小的Git包装器,以避免使用可选的Unix工具破坏环境。您将能够从Git Bash、命令提示符和Windows中使用Git)
3.Use Git and optional Unix tools from the Command Prompt -- 从命令提示符中使用Git和可选的Unix工具
Both Git and the optional Unix tools will be added to your PATH(Git和可选的Unix工具都将添加到您的路径中)
6
Choosing HTTPS transport backend -- 选择HTTPS传输后端
1.Use the OpenSSL library -- 使用OpenSSL库
Server certificates will be validated using the ca-bundle.crt file(服务器证书将使用ca-bundle.crt文件进行验证)
2.Use the native Windows Secure Channel library -- 使用本机Windows安全通道库
Server certificates will be validated using Windows Certificate Stores.This option also allows you to use your company's internal Root CA certificates distributed e.g. via Active Directory Domain Services(服务器证书将使用Windows证书存储库进行验证。此选项还允许您使用公司分发的内Root CA证书,例如通过Active Directory域服务)
7
配置行结束标记,保持默认“Checkout”
1.第一个选项:如果是跨平台项目,在Windows系统安装,选择
2.第二个选项:如果是跨平台项目,在Unix系统安装,选择;
3.第三个选项:非跨平台项目,选择;
8
在终端模拟器选择页面,默认即可,配置后Git
9
最后配置Git额外选择默认即可
10
11
12