-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
Description
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
- create a repo using GitHub web interface
- run
create-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
- automatically run
git init
when initial an app, - after an app is generated, print out
- steps of create a new repo in github from command line, or wrap those steps as
create-react-app set-github-remote
. rm -rf .gitignore .git
if user don't want to set git
- steps of create a new repo in github from command line, or wrap those steps as
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.