3.0.0-beta.6
https://github.com/abondar24/SocialTournamentService
Clone and create a new vue app via vue create
App is not added to a bigger project before it's done by git add .
.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.
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 git checkout --orphan v2
to create a fresh orphan branch. I didn't realise I could use vue create .
so I did it in a subdirectory and moved the files up, but noticed that .git
directory in there and was surprised.
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 git rev-parse --is-inside-work-tree
.
Would be really nice if it didn't create a repo; my current workflow with the cli is:
vue create xyz
cd xyz
rm -rf .git
npm run dev
Please get rid of the generated .git folder, its the last thing I want to be installed, can I just delete it?)
How about checking if already in a git repo, instead of initializing a submodule
This is a good idea.
Please get rid of the generated .git folder, its the last thing I want to be installed, can I just delete it?
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
13:02 Checked out ae73e9ccc6f59c17d346a33ec4f1b2fb21e62a2f (show balloon)
13:02 Couldn't checkout 064071910d689420fdb5f45847069755b7a757c3: Updating the following directories would lose untracked files in it:
I am not able to re checkout the branch I commited with that git folder above the commit with it:
fatal: bad object 8471141d8a2ba2f16684a1f5d362ada725e5a1d9:quantumjs
I don't really get the point of the .git folder, Ember cli and create react app, manages pretty good without a .git folder
vue-cli plugins are meant to modify your file. Without a .git
folder, vue-cli couldn't let you know precisely which file was modified and how, and you couldn't see the changes by yourself and eventually revert some of them thant doesn't suit you.
If you are generating a project in a folder of a git repo, remove the .git
folder created by vue-cli.
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 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?
Exactly.
On Thu, Apr 26, 2018, 01:18 Tim Wisniewski notifications@github.com 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
https://github.com/vuejs/vue-cli/issues/967#issuecomment-384463409, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFMYF207282RwNCDWybw50mXF5woOVl9ks5tsQQqgaJpZM4SlB5I
.>
Yours sincerely,
Alex Bondar
Mobile: +7-926-715-72-56
After c2aac9e:
--git false
--git
--git 'custom message'
Most helpful comment
After c2aac9e:
--git false
--git
--git 'custom message'