转摘Git入门第一讲:Windows版本git下载安装

扬代卉阅读量 9

Git入门第一讲:下载安装

1.官网下载

​[​https://git-scm.com/​](https://git-scm.com/)​​![Git入门第一讲:Windows版本git下载安装_git](https://s2.51cto.com/images/blog/202206/22100628_62b2792479bb594808.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "**")
![Git入门第一讲:Windows版本git下载安装_git win安装_02](https://s2.51cto.com/images/blog/202206/22100628_62b27924f099423835.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")

2.安装

![Git入门第一讲:Windows版本git下载安装_git win安装_03](https://s2.51cto.com/images/blog/202206/22100629_62b279253da2063728.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git安装_04](https://s2.51cto.com/images/blog/202206/22100629_62b279255777144559.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git_05](https://s2.51cto.com/images/blog/202206/22100629_62b279259f29c62545.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git创建用户_06](https://s2.51cto.com/images/blog/202206/22100629_62b27925cbe5264623.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git_07](https://s2.51cto.com/images/blog/202206/22100630_62b2792602c2e85527.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git安装_08](https://s2.51cto.com/images/blog/202206/22100630_62b27926488de29276.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git用户名邮箱_09](https://s2.51cto.com/images/blog/202206/22100630_62b2792679ef133786.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git安装_10](https://s2.51cto.com/images/blog/202206/22100630_62b27926a773252984.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git_11](https://s2.51cto.com/images/blog/202206/22100630_62b27926ed30256528.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git创建用户_12](https://s2.51cto.com/images/blog/202206/22100631_62b279272bcf766596.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")
![Git入门第一讲:Windows版本git下载安装_git创建用户_13](https://s2.51cto.com/images/blog/202206/22100631_62b27927532ed27526.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")

3.创建用户名和邮箱

这一步是必须的,需要标识上传代码的人是谁。
首先打开Bash,在桌面右键
![Git入门第一讲:Windows版本git下载安装_git创建用户_14](https://s2.51cto.com/images/blog/202206/22100631_62b2792786d2347217.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")

复制代码
# 设置全局用户名
git config --global user.name "JackWei"
# 设置全局用户邮箱
git config --global user.email "123456789@qq.com"
# 查看用户
git config user.name
# 查看邮箱
git config user.email

![Git入门第一讲:Windows版本git下载安装_git创建用户_15](https://s2.51cto.com/images/blog/202206/22100631_62b27927d7bd986777.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184 "在这里插入图片描述")


复制代码
    ===========================
    【来源: 51CTO】
    【作者: Jack魏】
    【原文链接】 https://blog.51cto.com/jackwei/5407317
    声明:转载此文是出于传递更多信息之目的。若有来源标注错误或侵犯了您的合法权益,请作者持权属证明与本网联系,我们将及时更正、删除,谢谢。
标签: git
0/300
全部评论0
0/300