github首先在 github 上面创造一个 repository 接着来到我们要上传项目的根目录 1234567echo "# test" >> README.mdgit initgit add .git commit -m "version-1"git branch -M maingit remote add origin https://github.com/Moecly/test.git # 换成你自己的仓库地址git push -u origin main 搞定啦。