Reputation: 51
I am trying to push multiple folders onto GitHub. However after pushing the local repository to GitHub, I can't open the folder "React_Projects" folder. There is an arrow on the folder instead and I can't click on it.
Why can't I open the folder and what am I doing wrong?
Upvotes: 5
Views: 5227
Reputation: 1
Step 1: Open visual studio code in your project folder. Step 2: Then go to File > Prefernces > settings > Text Editor > Files Step 3: Scroll down your cursor till "Exclude" .There Delete .git Item Step 4: Now you can see the hidden .git file in your folder structure. Delete it from there. After that it will work
Upvotes: 0
Reputation: 431
That icon is to indicate a git submodule, which has a link to the commit of another git version-controlled project/repository. You can read more about git submodules here.
You can also go to that folder and go to view -> hidden items and click it. check if you see a .git hidden folder. if you do just delete it and push again. that should solve it.
Upvotes: 4
Reputation: 948
I solved the problem by deleting .git folder inside subfolders (Hidden files and folders). You should have only one .git in the root folder.
I used This link to know how I can delete a .git folder from my subfolders of the project.
Upvotes: 1