Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 794 Bytes

moduleinfo.md

File metadata and controls

38 lines (25 loc) · 794 Bytes

Common Submodule Workflow and Errors

Submodules in improv: CaImAn repository

Useful Commands

  1. To push to submodules when you push to master:

git push --recurse-submodules=on-demand

  1. Get updates from upstream:

git submodule update --remote --merge

  1. Add an automatic submodule update on merges

    -This allows submodules to be updated more frequently without notifications from team members.

echo "git submodule update --init --recursive" >> .git/hooks/post-merge

  1. Set up Git to show updates to submodules on git status:

git config status.submodulesummary 1

  1. Set the to always update from a specific module’s branch (latest commit).

git config -f .gitmodules submodule.<MODULE_NAME>.branch <BRANCH_NAME>

Solutions to Common Errors