1.node和git环境安装
node官网:https://nodejs.org/zh-cn/
git官网:https://git-scm.com/download/win
注:别忘了配置环境变量
2.github上创建远程仓库
注:SSH key别忘了配置,创建仓库完成后会有仓库的https地址
3.本地项目和github上项目合并
在本地新建一个文件夹,此时git已经安装成功,右键会有git bash,点进去:
建立git仓库:
git init
将项目所有文件添加到仓库:
git add .
提交到仓库:
git commit -m "xxxx注释的语句"
*将本地的仓库关联到github
git remote add origin 仓库的https地址
上传github前pull一下:
git pull