Drsaud
Drsaud

Reputation: 425

Git commit and push error Changes not staged for commit:

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.

Upvotes: 0

Views: 1506

Answers (1)

Drsaud
Drsaud

Reputation: 425

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 :

  1. cmd in widnows
  2. cd to my project
  3. run del /F /S /Q /A .git
  4. Init git again in the root folder and puch everything

NOTE: MAKE SURE TO BACKUP EVERYTHING FOR ANY CASE

Upvotes: 1

Related Questions