一 新建项目快速上传到git hub git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/xx/xxx.git git push -u origin main 原文链接: https://blog.csdn.net/javajingling/article/details/135343743