首页 > Web开发 > 详细

上传代码到github的步骤

时间:2017-07-30 22:34:58      阅读:250      评论:0      收藏:0      [点我收藏+]

在你的电脑上装好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的步骤

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!