Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create react app without git (skipping git)?

I don't want git initialized in my folder when I create react app by

npx create-react-app appName

When I was working with Angular, it was comparatively easier by just typing the command

ng new my-app --skip-git

Can anyone please tell me the related command for React? I tried searching but couldn't find any satisfactory answer.

like image 496
saran Avatar asked Nov 25 '20 16:11

saran


People also ask

Does create React app use Git?

Now that you know how to identify a create-react-app, you can use git to pull the project from GitHub. This step entails simply navigating to the project's repository on GitHub, selecting the remote URL from within the green Code dropdown, and then running git clone <project's remote repo url> on your local machine.

Does create React App need Babel?

Creating a React application requires you to set up build tools such as Babel and Webpack. These build tools are required because React's JSX syntax is a language that the browser doesn't understand.


Video Answer


1 Answers

There's an open GitHub issue for your case.

TL;DR: There are no current plans to include such an option. The React developers recommend you run rm -rf .git after npx create-react-app appName to achieve these results.

like image 52
micpap25 Avatar answered Oct 21 '22 09:10

micpap25