-
-
Save chalstrick/ee18d33988d4751fbd640b2c035f61f9 to your computer and use it in GitHub Desktop.
Inspect native git behaviour on mergeConflicts on gitlinks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init subm | |
touch subm/a | |
git -C subm add a | |
git -C subm commit -m initSubm | |
git init root | |
git -C root submodule add ../subm | |
git -C root commit -m addingSubm | |
echo forMaster >>root/subm/a | |
git -C root/subm commit -a -m modSubmInMasterContext | |
git -C root commit -a -m updateSubmInMaster | |
git -C root checkout -b side --recurse-submodules HEAD~ | |
echo forSide >>root/subm/a | |
git -C root/subm commit -a -m modSubmInSideContext | |
git -C root commit -a -m updateSubmInSide | |
git -C root merge master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment