Unable to add submodules in Git

I cannot push the next submodule in Github via Git. I see the following error message. What am I doing wrong?

I have completed the following steps:

cd my_project
git init
git add *
git status

Then it displays the messages as:

   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:   server/auth (modified content)

    no changes added to commit (use "git add" and/or "git commit -a")

After I click, my / auth subdirectory server is not going to my github repository, please help me with this, I am new to this: My project structure is as follows: Server as main and clients , resource and auth as submodules, with the exception of auth > "does everything.

+4
source share
1 answer

Git ? 4 , , Git , Git subodule?

Git , auth, , , - :

cd my_project
git init
git submodule add <global-path-to-sub-repository> **clients**
git submodule add <global-path-to-sub-repository> **resource**
git submodule add <global-path-to-sub-repository> **auth**
git submodule init
git add *
git status
0

All Articles