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

git 将本地代码push到github

时间:2015-10-16 11:23:06      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

以cnblogs-scrapy.git为例介绍如何将本地代码push到github

  1. 在github上创建对应的仓库:https://github.com/hotbaby/cnblogs-scrapy.git
  2. 初始化本地仓库: $ git init
  3. 将代码添加本地仓库中: $ git add .
  4. 添加Log:$ git commit –m “Initialize commit.”
  5. 添加远程仓库:$ git remote add origin https://github.com/hotbaby/cnblogs-scrapy.git
  6. 将本地仓库push到远程仓库: $ git push origin master

git 将本地代码push到github

标签:

原文地址:http://www.cnblogs.com/hotbaby/p/4884432.html

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