ng g * should add files to git by default
See original GitHub issueversion: 0.0.27
when I generate new components / pipes / * my expectation is that they would be added to git tracking by default.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
git-add Documentation - Git
The git add command will not add ignored files by default. If any ignored files were explicitly specified on the command line, git...
Read more >How to skip initializing a Git Repository during creation of ...
I am using ng new [name] command to create angular 6 project. by default it is adding git repository. ng new [name]. angular....
Read more >ng generate - Angular
Generates and/or modifies files based on a schematic. ng generate < schematic >. ng g < schematic >. This command has the following...
Read more >How to disable Intellij froam adding files to git automatically
Share · Select Version Control · Select Confirmation · Select Do not add · Click Apply and OK button.
Read more >Schematics | Spectator - GitHub Pages
Default spec: ng g cs dashrized-name; Spec with a host: ng g cs ... such as generating components with scss file, you must...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I disagree with this, I think the idea of trying to add git functionality is going too far outside the scope of the CLI. Along those lines, when new-ing up a project there’s an option to
--skip-git
which would not create a repo at all, so that scenario would need to be handled. And what about devs using gasp other version control software (mercurial, team foundation version control, SVN) should the CLI also handle them?@deebloo as for creating a git repo upon new/init, that can easily be bypassed by passing the argument
--skip-git
when making a call tong new
orng init
I am going to close this issue as the consensus thus far is against this idea.