最佳答案
我似乎无法摆脱 Git 子模块中未被跟踪的内容:
# On branch master # Changes not staged for commit: # (use "git add ..." to update what will be committed) # (use "git checkout -- ..." to discard changes in working directory) # (commit or discard the untracked or modified content in submodules) # # modified: bundle/snipmate (untracked content) # modified: bundle/surround (untracked content) # modified: bundle/trailing-whitespace (untracked content) # modified: bundle/zencoding (untracked content) # no changes added to commit (use "git add" and/or "git commit -a")
添加 --ignore-submodules
参数隐藏了这些消息; 但是我想知道是否有一种方法可以以更合适的、核心的方式去除这些污点。