参考网址(感谢):https://jingyan.baidu.com/article/48b558e3090a907f38c09a20.html
1、到本地项目文件夹右键选择git bash here
2、输入个人信息(代码提交者)
git config --global user.name “xxxx”
git config --global user.email xxxxx@qq.com
3、在本地项目目录创建本地仓库
git init
输入命令后项目目录会有一个隐藏的.git文件夹
上传所有代码到本地仓库
4、这样就把代码上传到本地仓库了
git commit -m “initial commit”
git add .
5、上传代码到github
3.1新建repository
注意复制红圈标记的地址
6、关联本地仓库并上传代码
git remote add origin https://github.com/Yanyf765/hr_sys.git(上步骤复制的地址)
git push origin master