question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-set a generated app as a git repo

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
gaearoncommented, Sep 30, 2016

I don’t feel strongly about this and I don’t think it’s important at this point so I’ll close.

1reaction
mareksuscakcommented, Dec 12, 2016

Maybe I could continue where I left off the last time but not today.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found