angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng new --skip-git is ignored

Open rol-dave-overall opened this issue 9 years ago • 2 comments

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

rol-dave-overall avatar Sep 13 '17 22:09 rol-dave-overall

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

ADTC avatar Nov 26 '17 06:11 ADTC

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.