I cant push the changes I made to a git submodule. I have pushed the main project, and get this
mainProject$ git status
On branch myBranch
Changes not staged for commit:
(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: example/submod (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
But when trying to push the changed in the submodule i get
submod$ git status
On branch dev
Your branch is up-to-date with 'origin/dev'.
The output of the git --version is
git version 1.9.3 (Apple Git-50)
When I run
mainProject$ git diff example/submod
Submodule example/submod contains modified content
What is happening here? I can't add the changes from the main project either
mainProject$ git add example/submod
mainProject$ git status
On branch myBranch
Changes not staged for commit:
(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: example/submod (modified content)
no changes added to commit (use "git add" and/or "git commit -a")