To not execute the initial commmit just add to the command the attribute '-commit=false'
ng new <nome-app> --commit=false
It will create the repository, but will not commit. You can check this by entering the project folder and using the git log command and it will error 'fatal: your Current branch 'master' does not have any commits yet'
It is well described in the documentation of angular io.
But if you didn’t want to use git in the project, then just delete the '.git' folder inside the project directory. However, I don’t recommend deleting the git folder and also leave the initial commit running, since it doesn’t interfere with the workflow.
Interesting fact: why is it a problem to have this initial commit? Have you tried deleting the Git folder and creating the repository again?
– Woss
So, it’s because I like using Git Flow, so I’d like to start with it.
– Ricardo Alcantara Silva
I saw that I can exclude the . git, but since there is an option in the documentation, I would like it to work, because any project that did would have to delete . git always!
– Ricardo Alcantara Silva