使用vue cli 创建不带.git的项目

261 阅读1分钟

根据开发要求,版本控制需要使用svn,而不使用git

使用脚手架创建项目时增加 “- n” 选项即可 

 不带 -n 会生成.git文件 

vue create test1

带 -n 不会生成.git 文件

vue create test2 -n 

测试结果如下图: 

 test1项目生成了.git文件

 test2项目未生成.git文件