上传一个项目到GitHub

  • 在github上创建hello的仓库

  • 上传本地项目文件

echo "# hello" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:xxx/hello.git
git push -u origin master
原文地址:https://www.cnblogs.com/longling2344/p/11641896.html