How to get rid of Git submodules untracked status?

后端 未结 10 1528
轻奢々
轻奢々 2020-12-07 08:14

I can\'t seem to get rid of untracked content in Git\'s submodules. Running git status yields:

# On branch master
# Changes not staged for commit:
#          


        
10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 08:22

    In my situation I clone modules as a starting point for a new module in my ZF2 environment. What this does is put its own .git folder into the directory.

    Solution in this case is to delete the .git folder (you will likely need to show hidden files to view it).

提交回复
热议问题