Ignite: Why do "ignite new <project>" creates ".git" directory?

Created on 23 Aug 2019  路  3Comments  路  Source: infinitered/ignite

I tried 2 times to be sure. Why does ignite creates .git directory?

Most helpful comment

It's the default for new Ignite apps. You can pass --skip-git to ignite new to skip initializing a git repository, or delete the .git folder if you already started an app.

All 3 comments

It's the default for new Ignite apps. You can pass --skip-git to ignite new to skip initializing a git repository, or delete the .git folder if you already started an app.

Git is a powerful (and industry-standard) version control system. It is included by default because the majority of users will want to use it with their app and it's more convenient for it to be done automatically for them. As ruddell mentioned above, you can easily skip git or remove it after you have generated your project.

At this point, I think, it can be safely assumed that most developers already know and use git. This simply adds an additional step to the entire process.

I think that is the point @tayfunyasar was trying to make.

I ran into the same problem because the ignite project was part of a monorepo that contains other projects, and the monorepo is already linked to GitHub. I was unable to add the ignite project, came here, found out that you were adding git by default.

I suppose this helps new developers, like, developers who are new to react and also new to react native and also new to ignite and also new to git. That is a very small intersection on a Venn diagram, in my opinion :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GantMan picture GantMan  路  3Comments

wisn picture wisn  路  3Comments

lichao0817 picture lichao0817  路  3Comments

rammmukul picture rammmukul  路  3Comments

jamonholmgren picture jamonholmgren  路  3Comments