How to get rid of Git submodules untracked status?

后端 未结 10 1498
轻奢々
轻奢々 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:40

    This probably happens when you have another .git [hidden folder] inside the particular folder..

    modified: ./../.. (modified content, untracked content)

    make sure your sub-directory does not contains this .git folder.

    If That is the case the issue can be resolved by deleting the .git folder manually from the sub directory.

提交回复
热议问题