Issue
I have problem with commit and push the client, I get this error:
On branch VersionOne
Your branch is up to date with 'origin/VersionOne'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: client (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
Before I was pushing my files from the client its self, but I create backend file and could not commit it from the clinet, so I create new branch in top level directory and add both of them, the client not pushed.
Solution
I solve this problem, by moving to the client folder which is the inner repository or submodel and delete all the git files by going to :
- cmd in widnows
- cd to my project
- run del
/F /S /Q /A .git
- Init git again in the root folder and puch everything
NOTE: MAKE SURE TO BACKUP EVERYTHING FOR ANY CASE
Answered By – Drsaud
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0