Skip to content

Auto-set a generated app as a git repo #385

@Jiansen

Description

@Jiansen

A side discussion I started in #368 is how to manage a created app with GitHub(or another git server). In short, there are 2 ideas:

option 1: add a --git option to create-react-app

  1. create a repo using GitHub web interface
  2. runcreate-react-app my-app --git https://github.com/username/my-app.git locally and try to create an app in the cloned repo folder.

Note: assume user doesn't add conflicted filed (listed in #368) between step 1 and 2.

option 2: add extra 2 steps to create-react-app

  1. automatically run git init when initial an app,
  2. after an app is generated, print out

Option 1 is closer to my workflow of using other code generators, but I prefer option 2 if it is available (save me a few minutes of wandering on GitHub).

I am happy to try adding both options to CRA if you like. I see most of the work has been done by @torifat in PR #368.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions