Skip to content

Git

Submodules

Update the URL of an existing submodule:

shell
git submodule set-url <path> <new-url>
# Example: git submodule set-url hris ../hris

Moving to a New Git Host

Push all branches and tags to the new remote after updating the origin URL:

shell
git push --set-upstream origin --all
git push --set-upstream origin --tags