Skip to content

ng new --skip-git is ignored #7686

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

Closed
rol-dave-overall opened this issue Sep 13, 2017 · 2 comments · Fixed by angular/devkit#167
Closed

ng new --skip-git is ignored #7686

rol-dave-overall opened this issue Sep 13, 2017 · 2 comments · Fixed by angular/devkit#167
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity3: broken

Comments

@rol-dave-overall
Copy link

Bug Report or Feature Request (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.1
node: 6.11.2
os: win32 x64

Repro steps.

Execute ng new --directory . --skip-git in a folder which already contains a .gitignore file reports the error. Alternatively execute ng new --skip-git and upon looking in the folder a .gitignore file is still created.

The log given by the failure.

error! .gitignore already exists.

Desired functionality.

The ng new command should comply with the --skip-git option and not attempt to create a .gitignore file.

This was not an issue is version 1.3.2 and therefore must be a regression bug

@ADTC
Copy link

ADTC commented Nov 26, 2017

This was deliberate? 😱 Please see #8638 because I think there is a good use case for creating .gitignore file when it doesn't exist.

hansl pushed a commit that referenced this issue Jun 6, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity3: broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants