Created
April 20, 2020 11:02
-
-
Save UserUnknownFactor/f0cb9903d8e945848ff856610e67f530 to your computer and use it in GitHub Desktop.
This file contains 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
rem cmd | |
rem git doesn't require any actual repository or its worktree to be in any particular place. | |
git clone -c core.symlinks=true https://github.com/User/application | |
mklink /d main\resources\ c:\src\main\resources\ | |
mklink file.xml c:\src\main\resources\file.xml | |
git submodule init | |
echo gitdir: C:\to\shared\libraryXYZ\.git > libraryXYZ\.git | |
rem for example to see where all a project's submodules' parts are kept | |
git submodule foreach git rev-parse --git-dir --show-toplevel | |
rem or for just one: | |
git --git-dir=$project1\libraryXYZ\.git rev-parse --git-dir --show-toplevel | |
rem or https://stackoverflow.com/questions/5917249/git-symlinks-in-windows | |
rem bash | |
submodule add https://github.com/User/application | |
ln -s User/application/src/main/resources/file.xml | |
git add .gitmodules file.xml | |
git commit -m "add a symbolic link to file.xml with the respective submodule" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment