-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Generated project has a git repo added which doesn't let it add as a submodule to another project #967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just run into this as well. I don't expect a cli to init a git, I might not even use git or set the project in a monorepo, etc. I would expect this kind of actions to be optional. |
Same here -- in my case, I'm rewriting my app in vue, so I did While it is convenient for a new project, in my opinion, I don't think anyone would expect a git commit to be made from vue-cli. Of course, I've thought about this all of 30 seconds, and I'm sure whoever authored it thought about it plenty more. Just wanted to share my bit of feedback. Thanks for your work on this project -- the cli 3.0 is really handy! |
I definitely think the CLI needs an option to either opt into or out of initializing a git repo on project creation. Would be helpful especially for those that do not use git. |
How about checking if already in a git repo, instead of initializing a submodule (since the user seems to have the repo in control)? e.g. via Would be really nice if it didn't create a repo; my current workflow with the cli is:
|
Please get rid of the generated .git folder, its the last thing I want to be installed, can I just delete it?) |
This is a good idea.
You can delete it, but you will lose change detection after invoking a plugin that modifies your files. |
I don't really get the point of the .git folder, Ember cli and create react app, manages pretty good without a .git folder Having the previous .git folder messes up my existing git repo and I've spent most of today trying to fix it
I am not able to re checkout the branch I commited with that git folder above the commit with it:
|
vue-cli plugins are meant to modify your file. Without a If you are generating a project in a folder of a git repo, remove the |
Thanks for the clarification. What I will do is just create a new project and upload this direct to the remote. |
I don't think anyone is suggesting not to use git for version control; rather that it's something vue-cli shouldn't need to worry about. If a user wants to see the changes, they should make sure to have a clean working tree before running |
Exactly.
On Thu, Apr 26, 2018, 01:18 Tim Wisniewski ***@***.***> wrote:
I don't think anyone is suggesting not to use git for version control;
rather that it's something vue-cli shouldn't need to worry about. If a user
wants to see the changes, they should make sure to have a clean working
tree before running vue add. If they forget to do that, vue-cli will
still work but they won't be able to tell it's changes from whatever
changes were already uncommitted (same with any other command they run in
their terminal that modifies files). It seems like vue-cli is trying to
take responsibility for a version control best practice here, and a
side-effect is that it breaks things if you use vue create in a directory
that already has a git repo. Or am I misunderstanding?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#967 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFMYF207282RwNCDWybw50mXF5woOVl9ks5tsQQqgaJpZM4SlB5I>
.
--
Yours sincerely,
Alex Bondar
Mobile: +7-926-715-72-56
|
After c2aac9e:
|
Version
3.0.0-beta.6
Reproduction link
https://github.com/abondar24/SocialTournamentService
Steps to reproduce
Clone and create a new vue app via vue create
What is expected?
App is not added to a bigger project before it's done by git add .
What is actually happening?
.git dir is created and the app is created as a submodule which is tough to maintain.
Either turn off creating a local git repo or add an option while creating. Via the link to my repo you will find the app added as a I wanted. For this I had to ignore registring a VCS root in IntelliJ Idea. Then removed .git dir.
The text was updated successfully, but these errors were encountered: