新建git
右键git bash 打开
然后
git init
git chekout -b main
从github拉项目
git clone http://github.com
或者是git fetch
上传git
git add .
git commit -m “备注”
git remote -v检查一下
git remote add origin http://github
git push -u(第一次)
-f(覆盖原本信息)
git push origin main
补充说明
初始需要说明邮箱和密码
自己的仓库需要先生成密钥一个RSA公钥和私钥
添加到github
就可以连接上了