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

GIT安装教程

(1)Information 信息

 

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

 

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

 

(3)Select Components【选择组件】

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

Additional icons 额外添加图标

On the Desktop  在桌面上

 

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

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

Use the Nano editor by default

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

 

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

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传输后端】

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【配置行结束转换】

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

 

 

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

(11)Installing【安装】

 

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

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

 

 GIT命令提示符 

(1)设置用户名和邮箱

 (2)创建文件夹

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

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

(4)创建一个文件

 (5)添加到暂存区

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

 

  • 3
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值