首先,附上Windows下的Git的下载地址:https://git-for-windows.github.io/
在这里我简要说明下,Git-scm和msysGit的区别。git-scm.com是Git的官方网站,而Git最初是为了Linux操作系统而编写的版本控制软件,msysGit是一个项目,它使用MinGw的一部分,即MSYS在Windows本地平台上编译出Git,而“Git for Windows”就是他们发行的在Windows下的官方版本。
接下来就是具体的安装步骤:
![](https://i-blog.csdnimg.cn/blog_migrate/b1fdc3c5ec278d54cc8222bee1aae53a.png)
设置安装路径
![](https://i-blog.csdnimg.cn/blog_migrate/11f116e82acf7b3ce3f97a64ece74054.png)
选择安装的组件
![](https://i-blog.csdnimg.cn/blog_migrate/f67118898c504b027f01c70162f3f76c.png)
![](https://i-blog.csdnimg.cn/blog_migrate/4d3101f88507d26eda6e9db42d85d0a4.png)
这个步骤最好选择第二项“Use Git from the Windows Command Prompt”, 这样在Windows的命令行cmd中也可以运行git命令了。这样会对以后的一些操作带来方便。
![](https://i-blog.csdnimg.cn/blog_migrate/c541d8d550c1c63dc65ea9a2757da4a5.png)
![](https://i-blog.csdnimg.cn/blog_migrate/63f34eb56930533106aca407d898e4a4.png)
![](https://i-blog.csdnimg.cn/blog_migrate/d6dece424d4920f68307f42e711bf963.png)
配置行结束标记
![](https://i-blog.csdnimg.cn/blog_migrate/51e09787863cb5c4272f93c75f798cfd.png)
![](https://i-blog.csdnimg.cn/blog_migrate/eb1935a25c1b9fdda15b0e432521b0b4.png)
勾选是否立刻启动Git Bash和是否打开Git最新版本的网页信息
总结:以上主要讲述了Windows下的Git的安装过程,Git的更多的知识在接下来的博文中介绍。