前言 当我们在github创建了一个远程仓库之后,如何将本地仓库的内容推送至远程仓库呢? 流程 …or create a new repository on the command line #来到你本地仓库的文件夹,初始化 git init #这相当于一个随便创建了新文件 echo "# imdanteking.com" >> README.md #提交过程 git add README.md git commit -m "first commit" git branch -M main git remote add origin (你的https/ssh地址)