Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github doesn't detect new folder

Tags:

I am working on a windows 8 laptop with github client connected to my remote bitbuckket git. I recently built the mobile version of my website localhost/WEBSITENAME/mobile

been working in localhost/WEBSITENAME now in loaclhost/WEBSITENAME/mobile

Now github doesn't detect the new mobile folder so I can't push my mobile files. Any help would be great as I have another developer waiting for these files.

like image 244
Dustin Snider Avatar asked Jan 08 '14 21:01

Dustin Snider


People also ask

Can I not add a folder to GitHub?

GitHub does not allow you to add blank folders to your Git repository. A folder must contain a file before you can add it to a repository. If you want to create a new folder, create it first and then add a placeholder file into that folder. Then, add the new folder and file to your Git repo.

Why are new files not showing up in git status?

If you are working on someone else's code or working in a team, it is quite possible that at some point you add a new file to git, but it just won't show up on git status. You won't be able to stage or add it. This generally happens because of one of the rules in some . gitignore file is blocking that file.

Does GitHub not push empty folders?

Git doesn't like empty folders. It doesn't include them in commits and it certainly doesn't include an empty directory when you push to GitHub or GitLab.


1 Answers

Git will ignore empty folders. Make sure at least one file is present in the new folder in the Git repository, or else you are not able to add it.

like image 160
rixmit Avatar answered Oct 08 '22 01:10

rixmit