先从github上克隆代码下来:使用vscode克隆代码

如下图,填写上github仓库地址:

vscode有时候克隆代码速度比较慢,可以用命令行方式克隆
git clone 仓库地址
如果出现如下图错误:

SSL certificate problem: unable to get local issuer certificate
键入如下代码解决:(出现上面提示的问题,是由于没有配置信任的服务器HTTPS验证。默认,cURL被设为不信任任何CAs,就是说,它不信任任何服务器验证。)
git config --global http.sslVerify false
如果访问github访问速度慢,参看这篇加速访问的方法:
加速访问文档教程 参看文档
加速访问视频教程:https://www.ixigua.com/6992155002621919781
代码克隆好以后,常用的三段脚本
初始化脚本
git config --global user.name ""
git config --global user.email ""
git config --global credential.helper store
下载最新代码
git pull
更新推送到服务器
chcp 65001
git add .
git status
git commit -m "normal update"
git push