1. 首先在gitlab(gitee,github都行)创建项目
2. 复制项目地址,如:http://192.168.0.234:8090/th/my-init-test.git
3. 在本地项目目录下执行以下命令
1) git init
2) git add .
3) git commit -m "init"
4) git remote add origin http://192.168.0.234:8090/th/my-init-test.git
5) git push origin master