码迷,mamicode.com
首页 > 其他好文 > 详细

将本地代码添加到github

时间:2016-06-15 22:10:01      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:

 

首先在github上创建一个仓库。

 

第一步:建立本地仓库

  git init

关联远程仓库

git remote add origin https://github.com/tshua/***.git

pull一下

  git pull (git pull origin master)

第二步:添加项目文件

  git add 文件、目录

第三步:commit

  git commit -m "注释"

第四步:

  git push -u origin master

将本地代码添加到github

标签:

原文地址:http://www.cnblogs.com/tshua/p/5589002.html

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