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

上传代码到github的步骤

时间:2017-07-30 23:48:35      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:推送   pre   add   remote   uil   xxx   lock   .com   远程仓库   

在你的电脑上装好git

大致流程是:

1、在github上创建项目

2、使用git clone https://github.com/xxxxxxx/xxxxx.git克隆到本地

3、编辑项目

4、git add . (将改动添加到暂存区)

5、git commit -m "提交说明"

6、git push origin master 将本地更改推送到远程master分支。

这样你就完成了向远程仓库的推送。

如果在github的remote上已经有了文件,会出现错误。此时应当先pull一下,即:

git pull origin master

然后再进行:

git push origin master




上传代码到github的步骤

标签:推送   pre   add   remote   uil   xxx   lock   .com   远程仓库   

原文地址:http://www.cnblogs.com/zhouj850/p/7260583.html

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