将本地代码上传到github

准备工作

  1. 在github上创建自己的Repository。
  2. 安装git,centos的git安装教程

上传本地代码到github

git init
git add .
git commit -m '代码以后就开源了'
git remote add origin https://github.com/lujiang618/kfzphp.git
git pull

完工

posted @ 2017-10-12 10:06  犀利瓜  阅读(173)  评论(0编辑  收藏  举报