将本地代码上传到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

完工

原文地址:https://www.cnblogs.com/gelu/p/7654775.html