Auto-set a generated app as a git repo
See original GitHub issueA 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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (15 by maintainers)
Top Results From Across the Web
Git Generator - ApplicationSet Controller
The Git file generator generates parameters using the contents of JSON/YAML files found within a specified repository. Suppose you have a Git repository...
Read more >Getting a Git Repository - Git SCM
You can take a local directory that is currently not under version control, and turn it into a Git repository, or. You can...
Read more >Github Repo Setup for React App - DEV Community
I will discuss the appropriate way to create a react application that points to a Github repo. First, I will set up a...
Read more >Deploy from local Git repo - Azure App Service - Microsoft Learn
If you created a Git-enabled app in PowerShell using New-AzWebApp, the remote is already created for you. Push to the Azure remote with...
Read more >Creating New Applications | OpenShift Container Platform 3.11
The new-app command allows you to create applications from source code in a local or remote Git repository. To create an application using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t feel strongly about this and I don’t think it’s important at this point so I’ll close.
Maybe I could continue where I left off the last time but not today.