Git 命令

 
下载:https://git-scm.com/downloads
步骤:
1.配置信息:
git config --global user.name <用户名>
git config --global user.email <邮箱地址>
 
2. 克隆仓库:
 
3. 修改内容,提交:
git add .
git commit -m '初始化'
git push origin master ##提交到远程master分支
 
常见问题:
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错
解决办法:
git config --global http.sslVerify "false"
 
 
posted @ 2022-05-05 08:44  dvkc  阅读(27)  评论(0)    收藏  举报