Inaccessible folder on github

Asked

Viewed 2,531 times

4

I’m uploading my website to github.

Commands I 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 call "www" is sent only that it is inaccessible by github.

inserir a descrição da imagem aqui

  • What appears if you click the folder?

  • Folder does not open

2 answers

4


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

What you can do is run:

git rm --cached www

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

git add www

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

git push origin master

-1

First step : Submodule are those inaccessible folders that Voce cites, we have to remove the . git from within it, but first >>

$ git rm --cached 'pasta com submodule'

Now that we have removed the folder with this submodule, we have to remove the ' . git ' that is inside the folder, it can be removed like this :

$ rm -Rf 'pasta com submodule'/.git

Finally your folder will be updated in the IDE by performing this command, so we can upload it again without this problem:

$ git add 'pasta com submodule'

Remember: be at the root of the "www" project.. ending, Voce can excutate :

$git push origin master
  • I don’t know why -1, this error occurs by uploading a folder whose github keeps it inaccessible (the folder that holds an arrow), and the same guides to follow this step, and as it does not help in the next steps, I facilitated the understanding. Just do not forget to give a git push origin master

Browser other questions tagged

You are not signed in. Login or sign up in order to post.