github

首先在 github 上面创造一个 repository

接着来到我们要上传项目的根目录

1
2
3
4
5
6
7
echo "# test" >> README.md
git init
git add .
git commit -m "version-1"
git branch -M main
git remote add origin https://github.com/Moecly/test.git # 换成你自己的仓库地址
git push -u origin main

搞定啦。