1.创建仓库

2.删除仓库

翻到最下面


3.将本地文件同步到云端库上
Github------git本地仓库建立与远程连接(最详细清晰版本!附简化步骤与常见错误)_将本地仓库与远程仓库关联-CSDN博客
第三步参考:Github------git本地仓库建立与远程连接(最详细清晰版本!附简化步骤与常见错误)_将本地仓库与远程仓库关联-CSDN博客
步骤4,第一二步参考步骤5
第一步:先在GitHub官网上创建一个仓库,带上md文件
第二步:建一个ssh密钥
第三步:在本地创建要上传的文件,在此目录下打开bash,执行如下命令:
git init
git branch -M main 把bash的master改为main
git remote add origin https://github.com/A44s5dasad44/My_Paper_01.git 关联远程仓库
git pull --rebase origin main/master 下载md文件到本地
git push -u origin main 将本地文件上传至云

git问题error: remote origin already exists.
如果你clone下来一个别人的仓库,在此基础上完成你的代码,推送到自己的仓库可能遇到如下问题:
error: remote origin already exists.表示远程仓库已存在。
因此你要进行以下操作:
1、先输入git remote rm origin 删除关联的origin的远程库
2、关联自己的仓库 git remote add origin https://gitee.com/xxxxxx.git
3、最后git push origin master,这样就推送到自己的仓库了。