How to Change Submodule Branch Commit - TACC/Core-CMS GitHub Wiki
Steps
These instructions assume you are in TACC/Core-CMS and have already run git submodule init and gist submodule update.
-
Change the pinned commit of submodule.
(Downloads code from different commit ofcms-site-resourcesrepo totaccsite_custom/.)# Navigate into submodule (from root of this repo) cd taccsite_custom # Checkout different commit of submodule repo git checkout main_or_other_branch_or_commit # Update commit of submodule repo (as necessary) git pull # (or git fetch […], etc.) -
Save the pinned commit of submodule.
(Updates the pinned commit ofcms-site-resourcesrepo attaccsite_custom/.)# Navigate back to this repo (from root of submodule repo) cd ../ # Commit this repo's pointer to a different commit of submodule repo git add taccsite_custom git commit -m "[…] Update submodule to get […]" -
Push the change to a relevant branch.
(So that the change can be reviewed with relevant Core code changes, if any.)