{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/385","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/385/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/385/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/385","id":169764409,"number":385,"title":"Auto-set a generated app as a git repo","user":{"login":"Jiansen","id":1225761,"avatar_url":"https://avatars.githubusercontent.com/u/1225761?v=3","gravatar_id":"","url":"https://api.github.com/users/Jiansen","html_url":"https://github.com/Jiansen","followers_url":"https://api.github.com/users/Jiansen/followers","following_url":"https://api.github.com/users/Jiansen/following{/other_user}","gists_url":"https://api.github.com/users/Jiansen/gists{/gist_id}","starred_url":"https://api.github.com/users/Jiansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jiansen/subscriptions","organizations_url":"https://api.github.com/users/Jiansen/orgs","repos_url":"https://api.github.com/users/Jiansen/repos","events_url":"https://api.github.com/users/Jiansen/events{/privacy}","received_events_url":"https://api.github.com/users/Jiansen/received_events","type":"User","site_admin":false},"labels":[{"id":411265157,"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/discussion","name":"discussion","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-08-06T20:11:10Z","updated_at":"2016-12-12T17:39:49Z","closed_at":"2016-09-30T13:30:41Z","body":"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:\n## option 1: add a --git option to `create-react-app`\n1. create a repo using GitHub web interface\n2. 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.\n\nNote: assume user doesn't add conflicted filed (listed in #368) between step 1 and 2.\n## option 2: add extra 2 steps to `create-react-app`\n1. automatically run `git init` when initial an app,\n2. after an app is generated, print out \n   - steps of [create a new repo in github from command line](https://www.viget.com/articles/create-a-github-repo-from-the-command-line), or wrap those steps as `create-react-app set-github-remote`.\n   - `rm -rf .gitignore .git` if user don't want to set git\n\nOption 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).\n\nI 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.\n"},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/266497822","html_url":"https://github.com/facebookincubator/create-react-app/issues/385#issuecomment-266497822","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/385","id":266497822,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T17:39:49Z","updated_at":"2016-12-12T17:39:49Z","body":"Let’s coordinate work on this in https://github.com/facebookincubator/create-react-app/issues/1244."}}
{"actor":{"display_login":"gaearon"}}