码迷,mamicode.com
首页 > Web开发 > 详细

上传一个项目到GitHub

时间:2019-10-09 16:03:23      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:git init   com   init   hello   创建   origin   pre   master   first   

  • 在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

上传一个项目到GitHub

标签:git init   com   init   hello   创建   origin   pre   master   first   

原文地址:https://www.cnblogs.com/longling2344/p/11641896.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!