Remove Git Repo from a Git Repo

386 Views Asked by At

I created a new repository and cloned it on my PC, then initialized a React Native App, when I try to push my code from the root folder, it is giving me an error message saying that I have another .git in my subfolder, the React Native App. There is .git directory in my subfolder as well as the root folder, but deleting the .git from the subfolder didn't make any difference, and deleting the .git directory from the root folder causes git repo in a git repo. Can anyone help me?

1

There are 1 best solutions below

0
On

.git files is always hidden files. Check your hidden files is there any extra .git file any other folders. Remove it.