GIT的安装与命令提示符【详细教程】

GIT安装教程

(1)Information 信息

GIT的安装与命令提示符【详细教程】

 

点击Next下一步继续之前请阅读以下重要信息【看不懂英文可以有道翻译】

 

(2)Select Destination Location【选择安装路径】

GIT的安装与命令提示符【详细教程】

 

(3)Select Components【选择组件】

GIT的安装与命令提示符【详细教程】

如果想在桌面上显示GIT图标的话就选择Addtional icons

Additional icons 额外添加图标

On the Desktop  在桌面上

 

(4)Select Strat Menu Folder【创建开始菜单目录】

GIT的安装与命令提示符【详细教程】

(5) Choosing the default editor used by Git【选择GIT所使用的默认编辑器】

GIT的安装与命令提示符【详细教程】

Use the Nano editor by default

默认使用 Nano 编辑器【当然也有其他选择有道翻译】

 

(6)Adjusting your PATH environment【配置PATH环境】

GIT的安装与命令提示符【详细教程】

Use Git from the Windows Command Prompt

This option is considered safe as it only adds some minimal Git wrappers to your PATH to avoid cluttering your environment with optional Unix tools . You will be able to use Git from both Git Bash and the Windows Command Prompt.

这个选项被认为是安全的,因为它只向PATH添加一些最小的 Git包,以避免使用可选的Unix工具混淆环境。 您将能够从 Git Bash 和 Windows 命令提示符中使用 Git。

 

(7)Choosing HTTPS transport backend【选择HTTPS传输后端】

GIT的安装与命令提示符【详细教程】

Use the OpenSSL library

使用 OpenSSL 库

Server certificates will be validated using the ca-bundle.crt file.

服务器证书将使用ca-bundle.crt文件进行验证。

(8)Configuring the line ending conversions【配置行结束转换】

GIT的安装与命令提示符【详细教程】

 (9)Configuring the terminal emulator to use with Git Bash【配置终端模拟器以与 Git Bash 一起使用

GIT的安装与命令提示符【详细教程】

 

 

(10)Configuring extra options【配置额外的 选项】

GIT的安装与命令提示符【详细教程】

(11)Installing【安装】

GIT的安装与命令提示符【详细教程】

 

 (12)Completing the Git Setup Wizard【完成GIT安装向导】

GIT的安装与命令提示符【详细教程】

 安装好之后在桌面鼠标右键点击Git bash here  如果出现以下这个窗口就代表安装成功了

GIT的安装与命令提示符【详细教程】

 

 GIT命令提示符 

(1)设置用户名和邮箱

GIT的安装与命令提示符【详细教程】

 (2)创建文件夹

GIT的安装与命令提示符【详细教程】

(3)在文件内初始化git(创建git仓库)

如果不显示git则需要去设置隐藏文件具体度娘~

GIT的安装与命令提示符【详细教程】

(4)创建一个文件

GIT的安装与命令提示符【详细教程】

 (5)添加到暂存区

GIT的安装与命令提示符【详细教程】

(6)从暂存区提交到仓库

GIT的安装与命令提示符【详细教程】