I just want to simply git add my React project to my class Gitlab, but I get a warning:
saying:
warning: adding embedded git repository: frontend-Projekt
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add <url> frontend-Projekt
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached frontend-Projekt
hint:
hint: See "git help submodule" for more information.
I don't understand what I did wrong. Can someone help me? Or maybe tell me how to restart git bash so it would work normally again, because I tried reinstalling it and the warning still occurs.
git init? Or maybe you copied a.gitfolder into another repo?frontend-Projektprobably has a.gitfolder inside itwarning: adding embedded git repository. Try usingnpx create-react-app --skip-gitnext time.npx create-react-appcreates a git repo by default.