Cannot commit the line `Subproject commit`

In one of my projects monitored by git, I git cloned another repo from Github. Now I noticed that in the software Github for Mac, there are changes about Subproject commit. Somehow git is referring to the cloned directory as a file with 2 lines?

Trying to commit the changes will throw me the error

# On branch master
# 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:   packages/meteor-meteor (untracked content)
no changes added to commit (use "git add" and/or "git commit -a")

Doing git add . still gives me the same error when doing a commit. What is happening here? I do not need to track/commit/push any changes on the cloned repo, just need to pull new updates when available.


Somehow git is referring to the cloned directory as a file with 2 lines?

It is called a submodule. you can see it declare in your .gitmodules file.

If you change anything within packages/meteor-meteor, the status of the parent repo (which contain that submodule) will reflect the "dirty" (modified) state of that submodule.

What you see is the SHA1 registered as a special entry in the index of the parent repo.

Need Your Help

Global registration issues when registering CLI params into GET

php superglobals auto-registration

ran into a weird one here, maybe some of the more seniory of guys can help me come to a conclusion on what exactlies going on (already have a work around, but would like to know how to fix this as it

Error while configuring Sql server 2005 for full text search

sql-server-2005 indexing full-text-search

I am trying to index a table for full text search in a SQL server 2005.