Search code examples
gitgit-submodulesgit-status

How to see status of a git submodule library?


I have a library in a git project which is a submodule, I will call it service-lib.

The serivce-lib is not developed by myself or my company, and in fact I am encouraged not to edit it.

How can I check the git status of this module to:

  1. Check to makes sure I haven't accidentally edited/created a file in it
  2. See any updates from the developers (i.e. so I can adopt any bug fixes they may have added)

Solution

  • git submodule has the following command to view submodule statuts.

    git submodule status path/to/submodule