[Fixed] How to skip initializing a Git Repository during creation of angular 6 project

Issue

Is there any command to skip initializing a Git Repository during angular 6 project creation

I am using ng new [name] command to create angular 6 project. by default it is adding git repository.

ng new [name]

Solution

Updated answer:
Use --skip-git argument instead of deprecated --skipGit.

Old answer: You can use --skipGit argument.

From docs:

–skipGit=true|false

When true, does not initialize a git repository.

Default: false

Aliases: -g

Official docs – See Arguments section.

Leave a Reply

(*) Required, Your email will not be published