1、现在Gitlab新建一个项目空间;例如:https://mp.csdn.net/console/editor/html
2、本地项目,例如example,进入example,打开Git命令
3、git init
4、git remote add origin https://mp.csdn.net/console/editor/html
5、git pull origin master
6、git add .
7、git commit -m'init'
8、git push -u origin master
来源:CSDN
作者:WS_HSY90
链接:https://blog.csdn.net/WS_HSY90/article/details/104311676