Inaccessible folder in github

Posted on

Question :

I’m uploading my site to github.

Commands I’ve made:

git init 
git remote origin master URL 
git add --all 
git commit -m "Primeiro Commit" 
git push origin master

But git sends all files and folders to github, but a folder in
specific “www” is sent only if it is inaccessible by github.


Answer :

This happens because there is another “repository” .git inside the www folder.

What you can do is run:

git rm --cached www

Go to the www directory and delete the .git folder, go back to the previous directory and run:

git add www

To add the folder again, just send it to Github using:

git push origin master


Leave a Reply

Your email address will not be published. Required fields are marked *