大部分情况,都是从远程仓库 clone 项目,步骤很简单.
今天要把本地项目初始化到远程仓库的步骤记录下来,其实也很简单,几步就好:
#初始化本地仓库
git init
#将本地内容添加至git索引中
git add .
#将索引添加至本地仓库中
git commit -m "first commit"
#添加远程仓库路径
git remote add origin https://github.com/coderliguoqing/vans.git
#将本地内容push至远程仓库中
git push -u origin master
这样就搞定了
也欢迎大家来看看我的新的后端开发脚手架项目 vans,基本的框架已经搭建好了,正在逐步完善中,后续会继续优化,然后提供前后端分离的前端项目,基于 vue+elementui
地址: https://github.com/coderliguoqing/vans.git
来源: http://www.bubuko.com/infodetail-2470747.html