- 登录github网站并新建仓库。得到上传链接:
- https://github.com/用户名/项目名.git (https)
- git@github.com:用户名/项目.git(SSH)
- 添加SSH公钥,在setting->SSH
可以手动写一个README.md文档
git init git add . git commit -m "first commit" git branch -M main git remote add origin git@github.com:用户名/项目名.git git push -u origin main



