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

github提交本地项目

时间:2016-03-31 12:41:22      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

最近想把项目放到github上去,上网找了些资料终于成功了,记录下。

0,安装msysgit后,进入本地仓库目录,启动git Bash

1,把项目下载到本地
git clone https://github.com/Moerjiana/XXX.git

2,进入项目所在目录
cd xxx

3,把文件添加到代码库中,(.代表所有)
git add .

4,提交到本地的版本控制库里,""中为本机提交的说明
git commit -m "changes log"

5,将本地仓库提交到github中
git push -u origin master

有时需设置name跟email
git config --global user.name "XXXX"
git config --global user.email "XXXX@XXXXX"

github提交本地项目

标签:

原文地址:http://www.cnblogs.com/moerjiana/p/5340453.html

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