Skip to content

--skip-git option not working as expected #33898

Closed as not planned
Closed as not planned

Description

@chrisinhim

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

I didn't want angular cli to do any git related activity because my project is already git initialized and a .gitignore is already present. Inspite of giving --skip-git option for ng new command, it's still failing.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Error:
A merge conflicted on path "/.gitignore".

Please provide the environment you discovered this bug in (run ng version)

Angular CLI       : 22.1.5
Node.js           : 24.19.0
Package Manager   : npm 11.13.0
Operating System  : win32 x64

Anything else?

Image

Activity

  1. added
    gemini-triaged
    on Aug 22, 2026
  2. added this to the needsTriage milestone on Aug 22, 2026
  3. transferred this issue fromangular/angularon Aug 22, 2026
  4. alan-agius4 commented on Aug 22, 2026

    @alan-agius4
    Collaborator

    This is working as intended. The --skip-git flag skips repo initialization, but it still generates all project files, including .gitignore.

  5. angular-automatic-lock-bot commented on Oct 20, 2026

    @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.

  6. locked and limited conversation to collaborators on Oct 20, 2026
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

    area: @angular/cligemini-triaged

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions