Skip to content

ng new with --skipGit still generates some git files #18122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jelbourn opened this issue Jul 2, 2020 · 4 comments
Closed

ng new with --skipGit still generates some git files #18122

jelbourn opened this issue Jul 2, 2020 · 4 comments

Comments

@jelbourn
Copy link
Member

jelbourn commented Jul 2, 2020

Bug report

Command

ng new --skipGit appname

Description

Running ng new with --skipGit still generates a .gitignore and a .gitkeep file.

Minimal Reproduction

ng new --skipGit appname

Environment

Angular CLI: 10.0.1
Node: 12.18.2
OS: win32 x64

Angular:
...
Ivy Workspace:

Package Version

@angular-devkit/architect 0.1000.1
@angular-devkit/core 10.0.1
@angular-devkit/schematics 10.0.1
@schematics/angular 10.0.1
@schematics/update 0.1000.1
rxjs 6.5.5

@alan-agius4
Copy link
Collaborator

Duplicate of #8638

@alan-agius4 alan-agius4 marked this as a duplicate of #8638 Jul 2, 2020
@alan-agius4
Copy link
Collaborator

@jelbourn, can you please provide some more insights in the above mentioned issues to why skipGit should not create ‘.git‘ files? thanks.

@jelbourn
Copy link
Member Author

jelbourn commented Jul 6, 2020

In my case I already had a gitignore in my repo and the Angular CLI project was in a subdirectory. I just interpreted skipGit as "Skip everything related to git" and not "Don't initialize a git repo from scratch". Don't feel super strongly either way. (Also I didn't find the existing issue because I searched for "skipGit" instead of "skip-git")

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants