published on in git
tags: commands


  • File is added .gitmodules that track your submodules
    • Push top repository do not push the submodules
    • git submodule update to update submodules
    • git submodule status to show status, where they are
    • To use specific hash of git in submodule you just need
    • Go to submodule cd mySubModule
    • Checkout the git git checkout <hash>
    • Back main repo cd ..
    • Commit new changes git commit