将本地代码上传到github

时间:2024-12-31 16:36:20

准备工作

  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

完工

相关文章