git submodules with modified and untracked content - why and how to remove it?

前端 未结 6 1120
天命终不由人
天命终不由人 2020-12-23 11:14

this is what my git status\' result looks like:

# On branch master
# Changed but not updated:
#   (use \"git add ...\" to update wha         


        
6条回答
  •  天涯浪人
    2020-12-23 11:42

    One of the tracked files in vim/bundle/pathogen has been modified somehow. There is also some untracked (and unignored) content in the submodule vim/bundle/sparkup. In either case, the way to figure out what is modified / untracked is to change into the submodule directory and run git status. (In the case of untracked files in a submodule, this is frequently a build product that has not been added to .gitignore in upstream.)

提交回复
热议问题