粉丝不过W
git下载地址: https://git-scm.com/downloads, 安装git
时, 记住你安装Git
的路径
![UTOOLS1592569100133.png UTOOLS1592569100133.png](https://img-blog.csdnimg.cn/img_convert/9956f32d2459245d965b44a9cd2ee173.png)
vscode下载地址: https://code.visualstudio.com/
![UTOOLS1592569195665.png UTOOLS1592569195665.png](https://img-blog.csdnimg.cn/img_convert/086866d122817a4babd20e4fe8918483.png)
下载完后, 并默认安装好, 你就可以进入配置git
的环境变量了, 点击win
, 点击设置
![UTOOLS1592569409002.png UTOOLS1592569409002.png](https://img-blog.csdnimg.cn/img_convert/0feb1e35d8ced2623c1e49ed9651baa9.png)
在搜索框里搜索, 高级系统设置
![UTOOLS1592569460916.png UTOOLS1592569460916.png](https://img-blog.csdnimg.cn/img_convert/52591e471196355242797bacf1ab2af1.png)
点到 高级 , 然后点击 环境变量
![UTOOLS1592569509797.png UTOOLS1592569509797.png](https://img-blog.csdnimg.cn/img_convert/fed34e1ef2d1ff50b6dcaade5aa5a8d1.png)
选择Path
点击编辑
![UTOOLS1592569558891.png UTOOLS1592569558891.png](https://img-blog.csdnimg.cn/img_convert/64632d8eb6465fe281e45d2091e8d03b.png)
浏览路径, 找到你安装git
的路径
![UTOOLS1592569612739.png UTOOLS1592569612739.png](https://img-blog.csdnimg.cn/img_convert/7541ff617b3bd46368f6fbec00d4907f.png)
选择你安装 git
的路径, 并找到 git
下的 bin
这个文件
![UTOOLS1592569659673.png UTOOLS1592569659673.png](https://img-blog.csdnimg.cn/img_convert/7cf50815a11b9159ff3c412411ab1f81.png)
然后一键全部确认下去
就可以进入vscode
, 因为这是外国人发明的, 所以要配上我们中华人民共和国的语言, 点击这个图片, 然后搜索 Chinese 就会出来这个, 并安装, 我是安装好过, 所以是这个样子, 按好后, 可以重启一下vscode
![UTOOLS1592570249463.png UTOOLS1592570249463.png](https://img-blog.csdnimg.cn/img_convert/0a9c0d9ca4b7b26574d60ce6a7a5134e.png)
Shift + Ctrl + p , 输入git , 就会出来这个界面, 然后点击克隆
![UTOOLS1592570635715.png UTOOLS1592570635715.png](https://img-blog.csdnimg.cn/img_convert/f7361392fa31ab95c6ab5bc14fc7ba74.png)
这个就是输入克隆 gitee 或 GitHub的 代码库了, 我这演示gitee, 我平时使用gitee , GitHub太慢了, 坑爹
![UTOOLS1592570750436.png UTOOLS1592570750436.png](https://img-blog.csdnimg.cn/img_convert/122a34c5beffdd0f26671b7f783ab7ab.png)
进入到 gitee中, 我使用自己的库为例子 https://gitee.com/cpu_code/Linux-programming, 然后点击下面的复制
![UTOOLS1592570568484.png UTOOLS1592570568484.png](https://img-blog.csdnimg.cn/img_convert/ce5a017a957bf4631e854d5647537ad5.png)
把刚刚复制的 下载地址, 复制到vscode
里
![UTOOLS1592571066875.png UTOOLS1592571066875.png](https://img-blog.csdnimg.cn/img_convert/994a2b85b62843074cdde58e78e75f54.png)
然后选择你要把代码存放那个地方, 然后点击 选择存储库位置
![UTOOLS1592571200063.png UTOOLS1592571200063.png](https://img-blog.csdnimg.cn/img_convert/b99994b353529a6f657d11b99eab66c5.png)
下面显示这个, 就代表正在下载中了, 耐心等待, 其中可能会要你输入 gitee的 用户名 和 密码, 你直接输入自己的就好了
![UTOOLS1592571312935.png UTOOLS1592571312935.png](https://img-blog.csdnimg.cn/img_convert/4c48c135964984510790cb852a204bb4.png)
下载完成, 我们进行一个推送代码的实验, 在框中, 右击 出现框框, 然后点击新建文件
![UTOOLS1592571467981.png UTOOLS1592571467981.png](https://img-blog.csdnimg.cn/img_convert/808d657e199969a28e91f66cbe3c664b.png)
创建了 test.c 编辑后, 可以看见一个标1号蓝色气泡,
![UTOOLS1592571634721.png UTOOLS1592571634721.png](https://img-blog.csdnimg.cn/img_convert/9dd5bca3e33e9377540b188ab9093165.png)
点击蓝色气泡, 然后点击那个 + 号
![UTOOLS1592571789449.png UTOOLS1592571789449.png](https://img-blog.csdnimg.cn/img_convert/48359d336a131f169fcdeb075516b28d.png)
然后点击提交
![UTOOLS1592571834243.png UTOOLS1592571834243.png](https://img-blog.csdnimg.cn/img_convert/f6bacfb5e031a151ae9ca73c5fb24cec.png)
提交更新代码的信息
![UTOOLS1592571908413.png UTOOLS1592571908413.png](https://img-blog.csdnimg.cn/img_convert/a7e7f8299083904bb0f5f755f1b8620c.png)
回车后, 你就可以发现底下就有给上传的表示
![UTOOLS1592571943316.png UTOOLS1592571943316.png](https://img-blog.csdnimg.cn/img_convert/62ceb25d694f50d4d4216c21d8370634.png)
点击上传的标识就会出现这个图标, 点击确认
![UTOOLS1592572011548.png UTOOLS1592572011548.png](https://img-blog.csdnimg.cn/img_convert/3a35b2ec1f66e7628172a29a5ffab09e.png)
就出现了登录gitee的图标 然后输入你的gitee的用户名和密码
![UTOOLS1592572089650.png UTOOLS1592572089650.png](https://img-blog.csdnimg.cn/img_convert/7981cd608c7ce8f69ee2b1003abbe4e9.png)
输入正确, 你就能上传代码了
如果你输入错误, 感谢你, 你就会看见这个图标, 然后你就要看下面的步骤, 哈哈哈哈哈
![UTOOLS1592572212540.png UTOOLS1592572212540.png](https://img-blog.csdnimg.cn/img_convert/05eea35ab98679bd76caf94da283ae1e.png)
进入设置
![UTOOLS1592572516076.png UTOOLS1592572516076.png](https://img-blog.csdnimg.cn/img_convert/e92724e27b7cddce128374ae570dd441.png)
搜索控制面板
![UTOOLS1592572561588.png UTOOLS1592572561588.png](https://img-blog.csdnimg.cn/img_convert/24aa5e57e912ec84353f7be5918439b9.png)
点击用户账号
![UTOOLS1592572594052.png UTOOLS1592572594052.png](https://img-blog.csdnimg.cn/img_convert/c0ea7e8ba89f7c2994e3f43d7edb41a3.png)
点击 管理Windows凭证
![UTOOLS1592572641695.png UTOOLS1592572641695.png](https://img-blog.csdnimg.cn/img_convert/d009cf2972d63681aa009ce659c2395e.png)
然后点击编辑
![UTOOLS1592572719806.png UTOOLS1592572719806.png](https://img-blog.csdnimg.cn/img_convert/b9f0ac55be5fdb1eda661e4a28630c8c.png)
然后就修改你的账号和密码了 , 输入完成, 点击保存, 你就可以进入vscode 进行点击 上传图标, 直到成功为止
![UTOOLS1592572750997.png UTOOLS1592572750997.png](https://img-blog.csdnimg.cn/img_convert/28fe669855d11672b753009b378247fe.png)
@Author: cpu_code
@Date: 2020-06-19 20:24:20
@LastEditTime: 2020-06-19 21:26:09
@FilePath: \QT\firstQt\main.cpp
@Gitee: https://gitee.com/cpu_code
@CSDN: https://blog.csdn.net/qq_44226094