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.
If your directory structure looks like this:
/------WebsiteName/
|
|-----------/Mobile/
Then make sure you are in WebsiteName directory, then run git status
If you are still getting the same error then run the following in order:
git init
git status //here you should see the mobile folder and its files
git add --all
git commit -am "committing"
git push --all
Thanks I will try this next time I have a new folder.
I was having a similar issue to Kara's with Eclipse and your solution helped me. Thanks.
I am having same problem. But
git status
not recognizing folder and it's files. Also there is not any .gitignore file too. @medagit add .
thengit status
againTerrible suggestion -- afterwards I was able to add/commit but when I tried to push got error: "fatal: 'origin' does not appear to be a git repository"