git clone https://gitee.com/hiszm/C_game.git
注意 现在2020后的GitHub
新建的都是main
不是master
main
cd C_game/
$ git add .
git commit -m "添加此次更新的内容备注"
$ git pull origin master
$ git push -u origin master
其他
git remote -v: 查看远程仓库详细信息,可以看到仓库名称
git remote remove orign: 删除orign仓库(如果把origin拼写成orign,删除错误名称仓库)
git remote add origin 仓库地址: 重新添加远程仓库地址
gti push -u origin master: 提交到远程仓库的master主干
登录失败
setx GIT_TRACE ""
setx GCM_TRACE ""
网速太慢
$ git config --global http.lowSpeedLimit 0
$ git config --global http.lowSpeedTime 999999
最新版本git
https://download.csdn.net/download/jankin6/13944424
Git报错解决:fatal: unable to access ‘https://github.com/…’: OpenSSL SSL_read: Connection was reset, errno 10054git config --global http.sslVerify "false"