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]
To create a new repo, you'll use the git init command. git init is a one-time command you use during the initial setup of a new repo. Executing this command will create a new .
Typically, you only use git init if you already have code and you want to put it in a new Git repository. In answer to your question: if you want to clone a project, then you do not need git init .
For an existing project to become a Git repository, navigate into the targeted root directory. Then, run git init . Or, you can create a new repository in a directory in your current path. Use git init <directory> and specify which directory to turn into a Git repository.
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.
ng new --help
ng new my-app --skip-git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With