Skip to content

ng new --skip-git is ignored #7686

Description

@rol-dave-overall

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

Activity

  1. self-assigned this
    on Sep 22, 2017
  2. added
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    on Sep 22, 2017
  3. added 3 commits that reference this issue on Sep 25, 2017
    9c4412f
    1ac7e06
    6a0a88a
  4. added a commit that references this issue on Sep 27, 2017
    9d2c7e9
  5. ADTC commented on Nov 26, 2017

    @ADTC

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

  6. added a commit that references this issue on Jun 6, 2018
    c4505e1
  7. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentseverity3: broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions