在项目所在目录里初始化git,通过git bash here打开git 客户端
git init
在gitee上创建仓库(仓库名与项目名一致),注意不要勾选任何东西,也不要初始化README.md
创建成功后
把本地项目与远程仓库绑定
git remote add origin https://gitee.com/liangben2018/test.git
绑定之后把本地项目文件git add,git commit,git push即可
git add .
git commit -m "test"
git push -u origin master