How to get rid of Git submodules untracked status?

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

    You can also go to each submodule dir and act as a separated git. For example:

    cd my/project/submodule
    git status
    

    ... /gets the list of modified files/

    git add .  //to add all of them to commit into submodule
    git commit -m "message to your submodule repo"
    

    you can also update your remote submodule repo with

    git submodule update
    

    after all

提交回复
热议问题