Search code examples
git-mergegit-submodulesgit-remote

Results of Merging a Branch Tracking a Remote with a Branch Containing a Submodule?


What happens when a branch containing a submodule and a branch tracking a remote are merged?


Solution

  • Nothing special: a submodule is just an entry in the index, a gitlink.

    As long as that entry (like a folder name) doesn't conflict with the same name from the other branch, the merge will proceed.