进入项目文件 右键 git bash
1、初始化
git init
2、添加到缓存区
git add . // .代表所有文件都添加
3、提交到本地仓库
$ git commit -m "chuniao" // 引号里面是备注信息,随便写
4、关联远程仓库
$ git remote add origin https://gitee..... # https://gitee.... 复制的https链接
5、如果 gitee 仓库创建的额时候有 README.MD 文件,则先拉取代码,如果仓库是空的则跳过
$ git pull --rebase origin master
6、提交到远程仓库
git push -u origin master