git: stop warning me about changes in submodule -


i have git submodule showing "modified" in git status though never update it.

# on branch master # changes not staged commit: #   (use "git add <file>..." update committed) #   (use "git checkout -- <file>..." discard changes in working directory) #   (commit or discard untracked or modified content in submodules) # #   modified:   mknetworkkit (new commits, untracked content) # 

how stop git thinking it? tried adding mknetworkkit .gitignore doesn't anything.

simply add:

git status --ignore-submodules 

the question "how rid of git submodules untracked status?" proposes more permanent way of masking status, if after temporarily hiding information, --ignore-submodules enough.

from git status man page:

--ignore-submodules[=<when>] 

ignore changes submodules when looking changes.
<when> can either "none", "untracked", "dirty" or "all", default.

  • using "none" consider submodule modified when either contains untracked or modified files or head differs commit recorded in superproject , can used override settings of ignore option in git-config(1) or gitmodules(5).
  • when "untracked" used submodules not considered dirty when contain untracked content (but still scanned modified content).
  • using "dirty" ignores changes work tree of submodules, changes commits stored in superproject shown (this behavior before 1.7.0).
  • using "all" hides changes submodules (and suppresses output of submodule summaries when config option status.submodulesummary set).

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -