Open ZimGil opened 3 years ago
Are you hoping that the default .gitignore content is merged with your repo's .gitignore content while currently it is totally replaced?
It seems reasonable but it doesn't make much sense.
When you have an existing project with a certain .gitignore
content that matches you project, and you want to add Vue.js using the vue-cli, you're not expecting that vue create .
will alter you .gitignore
file and you may end up commiting files that should be ignored.
Version
4.5.10
Environment info
Steps to reproduce
Create a new github repo with a default .gitignore for node.js clone to your machine and then inside that directory, run
vue create .
What is expected?
.gitignore is changed to include new files and not replaced while losing previous ignored files
What is actually happening?
.gitignore is cahnged and things like ".env" files are added to git.