You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'd be in favor of turning the option around entirely
automatically call git init unless --no-git-init was passed or we are in a git project already.
if one was initialized, add "we initialized git for you, if you don't need that, run `rm -rf .git" to next steps
(edit: only if git is installed, we are in a tty and CI is false)
I think we should just get rid of it. It's unnecessary clutter for people that already know git, and it's a line full of funny words and symbols for those that don't. It's not very helpful in either case
I think there's a bunch of different ways we could go with this. E.g. it could be:
Initialize a new source control repository?
- git
- svn
- mercurial
- none
We could also have a file like ~/.svelte/cli/config.json that remembers your preferences. Rich had suggested he'd also like to see his preference for package manager to be remembered
Then I think the other big question might be something like:
What commits should we create?
- a single initial commit
- a commit for each integration
- none
We could also potentially do nothing by default and not have any questions, but have text at the bottom of the screen that says something like Ctrl + P to edit preferences
Are svn and mercurial still a thing? I was unable to find any usage statistics about that, but i would assume that nowadays 95% are using git, especially if you are trying to create a new project.
What commits should we create?
- a single initial commit
- a commit for each integration
- none
I think such a question would make sense.
I'm not a fan of the preferences though, at least at the current stage. I do think this might make more sense in the future, once we integrate the other tools more deeply.
So why bother about the other vcs? As we have done a number of times for other decision, we shouldn't bother about those minor minorities.
once we integrate the other tools more deeply
Which tools were you thinking of?
I was especially thinking about migrate for whatever reason. Background is that currently i'm at max using sv 11 times (10 adders + 1 project creation) and I don't think it's worth the effort and trouble at this point.
But as soon as we implement #278 i.e. you might be using sv an unlimited amount of time, where it might make sense to add such prefernces.
I think asking if you want to initialize a git repo isn't very valuable if that's all you do. git init is so easy to do. Something like git init && git add -A && git commit -m "Initial commit" where you're running three different commands for the user provides more value though.
Activity
dominikg commentedon Nov 9, 2024
i'd be in favor of turning the option around entirely
automatically call
git init
unless --no-git-init was passed or we are in a git project already.if one was initialized, add "we initialized git for you, if you don't need that, run `rm -rf .git" to next steps
(edit: only if
git
is installed, we are in a tty andCI
is false)AdrianGonz97 commentedon Nov 10, 2024
I think we should just get rid of it. It's unnecessary clutter for people that already know git, and it's a line full of funny words and symbols for those that don't. It's not very helpful in either case
BlankParticle commentedon Nov 22, 2024
I think best option would be to ask to initialise a git repo if git is installed and the directory is already not a git repo.
example from

create-remix
benmccann commentedon Nov 25, 2024
I think there's a bunch of different ways we could go with this. E.g. it could be:
We could also have a file like
~/.svelte/cli/config.json
that remembers your preferences. Rich had suggested he'd also like to see his preference for package manager to be rememberedThen I think the other big question might be something like:
We could also potentially do nothing by default and not have any questions, but have text at the bottom of the screen that says something like
Ctrl + P to edit preferences
manuel3108 commentedon Nov 27, 2024
Are
svn
andmercurial
still a thing? I was unable to find any usage statistics about that, but i would assume that nowadays 95% are usinggit
, especially if you are trying to create a new project.I think such a question would make sense.
I'm not a fan of the preferences though, at least at the current stage. I do think this might make more sense in the future, once we integrate the other tools more deeply.
benmccann commentedon Nov 27, 2024
I think that's about right
Which tools were you thinking of?
manuel3108 commentedon Nov 27, 2024
So why bother about the other vcs? As we have done a number of times for other decision, we shouldn't bother about those minor minorities.
I was especially thinking about
migrate
for whatever reason. Background is that currently i'm at max usingsv
11 times (10 adders + 1 project creation) and I don't think it's worth the effort and trouble at this point.But as soon as we implement #278 i.e. you might be using
sv
an unlimited amount of time, where it might make sense to add such prefernces.benmccann commentedon Nov 27, 2024
Yeah, fair enough to not ask about the other version control software. Maybe we can combine the two questions then into a single question:
AdrianGonz97 commentedon Nov 27, 2024
I'm still against adding a git option entirely, but if I had to choose, simply initializing the repo like this: #287 (comment) should be sufficient.
I don't think a
commit per add-on
option provides any real valuebenmccann commentedon Nov 27, 2024
I think asking if you want to initialize a git repo isn't very valuable if that's all you do.
git init
is so easy to do. Something likegit init && git add -A && git commit -m "Initial commit"
where you're running three different commands for the user provides more value though.sv create
next steps do not work on windows #621