Github does not detect a new folder

I am working on a Windows 8 laptop with a github client connected to my remote git bitpack. I recently created a mobile version of my site localhost / WEBSITENAME / mobile

worked in localhost / WEBSITENAME now in loaclhost / WEBSITENAME / mobile

Now github does not detect a new folder for mobile devices, so I can’t click on my mobile files. Any help would be great as I have another developer waiting for these files.

+6
source share
4 answers

If your directory structure looks like this:

/------WebsiteName/ | |-----------/Mobile/ 

Then make sure you are in the WebsiteName directory, then run git status

If you still get the same error, run the following command:

 git init git status //here you should see the mobile folder and its files git add --all git commit -am "committing" git push --all 
+10
source

Git will ignore empty folders. Make sure that at least one file is present in the new folder in the Git repository, otherwise you cannot add it.

+22
source

In this case, you should check if you have placed /mobile in your .gitignore file. Or the solution provided by @meda will work.

+3
source

Make sure the folder does not have a .gitignore file that locks the specific folder you are trying to add, or the file or its extension

0
source

All Articles