question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng g * should add files to git by default

See original GitHub issue

version: 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:closed
  • Created 7 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
Broccocommented, Mar 28, 2016

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?

1reaction
Broccocommented, Mar 30, 2016

@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 to ng new or ng init

I am going to close this issue as the consensus thus far is against this idea.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found