Dinesh Hiregange
Dinesh Hiregange

Reputation: 113

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

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]

Upvotes: 9

Views: 13079

Answers (2)

leopal
leopal

Reputation: 4959

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.

Upvotes: 17

Robert Ellis
Robert Ellis

Reputation: 734

To list the available options

ng new  --help 

To skip Git. This is the command

ng new my-app --skip-git

Upvotes: 6

Related Questions