How to get rid of Git submodules untracked status?

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

    If this is a temporary issue, you can go into the submodule folder and run git reset HEAD --hard but you will lose all your changes inside of the submodule.

提交回复
热议问题