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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With