当你接手一个新项目的时候如何快速地搭建项目的基础框架呢。
1.首先我们去到gitlab,来到主页这里右上角new project。
![7798479-9991af0b49d8cee7.png](https://i-blog.csdnimg.cn/blog_migrate/695d2ad7bbd8b1085167e55d3c793388.webp?x-image-process=image/format,png)
2.填写项目名称等
![7798479-d25ee9b8229e10f8.png](https://i-blog.csdnimg.cn/blog_migrate/420dca25c0f5130add475a4588f9612e.webp?x-image-process=image/format,png)
3.按照提示在自己的工作目录下面初始化项目。
git config --global user.name "xxx"
git config --global user.email "wet@xxx.com"
git clonehttp://git.i.xxxx.com/xxx/test.gitcd testtouch README.mdgit add README.mdgit commit -m "add README"git push -u origin master
4.初始化后在Gitlab上面创建Dev分支。
![7798479-357107747ee83e21.png](https://i-blog.csdnimg.cn/blog_migrate/1900ea0e298b2656088ef1ada05ba6c9.webp?x-image-process=image/format,png)
![7798479-2e453032f8fc84a6.png](https://i-blog.csdnimg.cn/blog_migrate/3f44b0fd014f741a382e976a82b25b4f.webp?x-image-process=image/format,png)
5.自动创建一个新的本地分支,并与指定的远程分支关联起来
git checkout -b feature_dwt origin/feature_dwt