I've got some files/folders that just wont leave the Git staging area?
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: JavaScript/Stand.ard.iz.er (modified content, untracked content)
# modified: Site (untracked content)
# modified: Template Archives/Template (modified content, untracked content)
# modified: Template Archives/Template_Git (modified content, untracked content)
#
I've tried everything to get these 'modified' files commited but with no luck?
I've tried...
git add .
git add *
git add -u
git add {actual full directory path}
...but none of it works.
Any ideas?
Thanks.
Those could be submodules, in which case their status would be displayed from the status of the parent repo.
Unless, that is, you use the
--ignore-submodules[=<when>]
option of git status:In any case, you would need to add and commit from within the submodules themselves, before being able to go up one level (at the parent repo level), and see clean status.
This could happend if you've copy some new folder to your project which have already a .git folder inside. So it will be like a sub repository in your main repository. The solution is just delete this .git folder in your new copied sub folder.