美文网首页
Git 2.14.1 Setup for Windows

Git 2.14.1 Setup for Windows

作者: 栗子雨 | 来源:发表于2017-09-11 01:20 被阅读0次

    下载地址

    https://git-for-windows.github.io

    Windows安装2.14.1

    1.创建快捷方式,画圈是重点

    Git 2.14.1 Setup for Windows(1)

    2.配置环境变量,以便能够在全局使用git命令

    Git 2.14.1 Setup for Windows(2)

    3.HTTPS传输协议:使用OpenSSL库

    Git 2.14.1 Setup for Windows(3)

    4.默认windows

    Git 2.14.1 Setup for Windows(4)

    5.使用MinTTY:

    Git的Windows客户端,会自带一个叫MinGW的Linux命令行工具,

    可以执行简单的shell命令,与cygwin功能类似,仅此而已。

    而在MinGW命令行窗口中,执行命令“mintty”既可以

    打开mintty窗口,再次可以使用ssh命令登录linux服务器。

    Git 2.14.1 Setup for Windows(5)

    6.额外配置,默认

    Git 2.14.1 Setup for Windows(6)

    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

    只是做个学习记录。。。

    相关文章

      网友评论

          本文标题:Git 2.14.1 Setup for Windows

          本文链接:https://www.haomeiwen.com/subject/idlxsxtx.html