GIT:Git-2.12.1-64-bit.exe的windows安装
参看:http://www.imooc.com/learn/208
下载路径:
https://github.com/git-for-windows/git/releases/tag/v2.12.1.windows.1
安装过程:
这个版本的安装都是点击下一步即可配置过程:
下面是我的命令过程:
[email protected] MINGW64 ~
$ git config --global user.name "tgm"
[email protected] MINGW64 ~
$ git config --global user.email "[email protected]"
[email protected] MINGW64 ~
$ git config --global core.autocrlf false
[email protected] MINGW64 ~
$ git config --global core.quotepath off
[email protected] MINGW64 ~
$ git config --global core.ignorecase false
[email protected] MINGW64 ~
$ ssh-****** -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
Created directory '/c/Users/Administrator/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:v+uRJrqxbPIfyXF3AoiQnml20rKbBfNiSsSdyRheMyI [email protected]
The key's randomart image is:
+---[RSA 2048]----+
| .. |
|E o =. . . |
| + O O. . . |
| = / o . |
| . o O S . o . |
| . + o. = o o |
| . o =. = = |
| . +..+ + o |
| +*o..+. |
+----[SHA256]-----+
[email protected] MINGW64 ~
$ ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
[email protected] MINGW64 ~
$ eval `ssh-agent`
Agent pid 3428
[email protected] MINGW64 ~
$ ssh-add ~/.ssh/id_rsa
Identity added: /c/Users/Administrator/.ssh/id_rsa (/c/Users/Administrator/.ssh/ id_rsa)
[email protected] MINGW64 ~
$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvxLyuTGvVOg+5D56D23j7C/Wkbi1wfPk9hHR2WH+hPGu2AXuZ/qGyskXfk7EvLgc/gBYu+RiyStUxZlBSl6kqJQ0KcpdgsTO0Ua67WVVnZKp2ItZqOEzUFvGqeOHL5kAMTAYtRbLujTUmIWYGTPp/33emUPrLTr5wcuGYJ8MFNUbj/rZtwA58jaHFK1+HefYtfSnWdnZucCKsGU4BFxhzlBb7mAKJgI0F8hmbaG94DQ7q62Cdtb7f5vDaLeswiYfFNLs/6SR28akvf0DDPy+Fg3TYPjbgxxPd53ueedGx8GvNFlRWb76JJISoRTpZePfmUn2cquhYpDdn0SjjVdvj [email protected]
验证:
[email protected] MINGW64 ~
$ git --version
git version 2.12.1.windows.1