[2018-04-18]
下载git Windows客户端
git客户端下载地址:https://git-scm.com/downloads
我这里下载的是Git-2.14.0-64-bit.exe版本
下载TortoiseGit
TortoiseGit客户端下载地址:https://tortoisegit.org/download
TortoiseGit客户端要下载两个,一个是安装程序,一个是中文语言包
![](https://i-blog.csdnimg.cn/blog_migrate/35e99966199fb2a1bd4e27c72832c165.png)
上述下载完成后,你会得到以下这三个文件
![](https://i-blog.csdnimg.cn/blog_migrate/2f0a5e946f6983213c924cd231b8a89f.png)
如果上述三个文件下载过慢的话,可以直接下载我这里打包好的:http://down.whsir.com/downloads/gitclient.rar
安装顺序:
1、Git-2.13.3-64-bit.exe
2、TortoiseGit-2.5.0.0-64bit.msi
3、TortoiseGit-LanguagePack-2.5.0.0-64bit-zh_CN.msi
Git客户端安装:
![](https://i-blog.csdnimg.cn/blog_migrate/4f8a3a31930b98b08d68010bf88d7c10.png)
![](https://i-blog.csdnimg.cn/blog_migrate/9e052110b4871d4a2644016e41547592.png)
![](https://i-blog.csdnimg.cn/blog_migrate/6a2a49d00b94f7971f111abb8a0871bb.png)
![](https://i-blog.csdnimg.cn/blog_migrate/208aad1f86f3c13cd85e0e1575cb3cb7.png)
![](https://i-blog.csdnimg.cn/blog_migrate/a5d049ec9cadc8fb4b4ac9ddd8c3332e.png)
![](https://i-blog.csdnimg.cn/blog_migrate/9836b2a2972a2f5cbd03941870be4d54.png)
![](https://i-blog.csdnimg.cn/blog_migrate/fb5c03240d752e216d7d1f8022197ad0.png)
![](https://i-blog.csdnimg.cn/blog_migrate/df280017d58668ea75e68341cf73fe51.png)
![](https://i-blog.csdnimg.cn/blog_migrate/08a079be34f1ad34c0a5bb6639a86e2b.png)
TortoiseGit客户端安装:
![](https://i-blog.csdnimg.cn/blog_migrate/2ac18cc6bd94e3c1482866f630d2d6ed.png)
![](https://i-blog.csdnimg.cn/blog_migrate/0bfb30189cc6907e9106f5d271685194.png)
![](https://i-blog.csdnimg.cn/blog_migrate/b9f717309de71533d3612268ee20c74b.png)
![](https://i-blog.csdnimg.cn/blog_migrate/8eccfb829f206c7fe5c7e0ed99859878.png)
![](https://i-blog.csdnimg.cn/blog_migrate/35fb6c889c2af59a1558c7bb8ae41e88.png)
![](https://i-blog.csdnimg.cn/blog_migrate/19710662ae757693a9958a09d414f06f.png)
![](https://i-blog.csdnimg.cn/blog_migrate/14210ff1c3254fa7261088c35acf97af.png)
不运行开始向导直接完成即可
TortoiseGit-LanguagePack安装:
![](https://i-blog.csdnimg.cn/blog_migrate/15f27a758a8eeeeea7ea0b49f20e7f26.png)
![](https://i-blog.csdnimg.cn/blog_migrate/817540b41fd6bb5d181e18807b6e282b.png)
![](https://i-blog.csdnimg.cn/blog_migrate/1819ffd4b5665d395fb8754f8e6bb911.png)
![](https://i-blog.csdnimg.cn/blog_migrate/6660a4da49ccb25152b2beffd50de8c9.png)
一直下一步就好,有一处需要设置个用户名和邮箱(不用于身份验证)
![](https://i-blog.csdnimg.cn/blog_migrate/c841515dc1072d83e7d2e46d51115f4d.png)
生成PuTTY密钥对
![](https://i-blog.csdnimg.cn/blog_migrate/26a03a48533f9b50e075e7ccbb033e18.png)
![](https://i-blog.csdnimg.cn/blog_migrate/5a1fb576cb7231eaab5d5c419376b866.png)
注意下,这个进度条你会发现很慢,需要你动鼠标在空白处多晃动几下就很快了,注意上面写的Please内容
![](https://i-blog.csdnimg.cn/blog_migrate/c52f606cd855d8d3f3c23504cc99051c.png)
![](https://i-blog.csdnimg.cn/blog_migrate/68400d151a7b61ed19c2ccf92de4d383.png)
上面圈出部分是公钥,将私钥保存下来
我这里用的是gitlab,将公钥复制到gitlab中
![](https://i-blog.csdnimg.cn/blog_migrate/c10eeb49e0d50212b1edb9e536146394.png)
我这里本地已经搭好了一个gitlab,加载Putty密钥,这个就是刚才保存的私钥
![](https://i-blog.csdnimg.cn/blog_migrate/a334818bf9aa72d7e6ad139ce127842a.png)
![](https://i-blog.csdnimg.cn/blog_migrate/32d3b80159f083e292b9b8ddae077fc4.png)
如果ssh连接不成功,请检查你的ssh端口是否是默认的22