gitnext.js

How to create Next.js app without Github repository


When I install with 'npx create-next-app@latest', it automatically comes with a git repository already set up. I didn't used to experience this before, but for the past two days, when I create a new project, it automatically sets up its own git with the main branch. What should I do?

I formatted my computer and reinstalled all the installations, but the result did not change.enter image description here


Solution

  • I don't recall having created a next app without a local git repository so it is quite much older than 2 days ago. Furthermore, I don't see the issue with having it set up but, to remove it, just delete the .git directory in the root of your project.