Skip to content

Commit c848414

Browse files
author
Dennis Labordus
committed
Updasted documentation about submodules.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent cb29791 commit c848414

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

DEVELOPMENT.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ next `git submodule update`.
1313

1414
More about Git Submodules can be found [here](https://git-scm.com/book/en/v2/Git-Tools-Submodules).
1515

16-
Tip: The URL to the submodules are configured in the file `.gitmodules`, but these are using the SSH URL. There is a way
17-
described in the URL above that the URL can be overwritten locally with an HTTPS URL of the GIT Repository.
16+
**Remark**: The URLs to the submodules are configured in the file `.gitmodules`, but these are using the SSH URLs. There
17+
is a way described [here](https://git-scm.com/book/en/v2/Git-Tools-Submodules) that the URL can be overwritten locally
18+
with an HTTPS URL of the GIT Repository. Because of the subdirectory where the submodules are in, this doesn't work
19+
exactly that way. Use the following commands to update the URLs locally to HTTPS.
1820

1921
```
20-
Since the URL in the .gitmodules file is what other people will first try to clone/fetch from, make sure to use a URL
21-
that they can access if possible. For example, if you use a different URL to push to than others would to pull from,
22-
use the one that others have access to. You can overwrite this value locally with git config
23-
submodule."riseclipse/riseclipse-developer".url HTTPS_URL for your own use. When applicable, a relative URL can be
24-
helpful.
22+
git config submodule.riseclipse/riseclipse-developer.url https://github.com/riseclipse/riseclipse-developer.git
23+
git config submodule.riseclipse/riseclipse-main.url https://github.com/riseclipse/riseclipse-main.git
24+
git config submodule.riseclipse/riseclipse-metamodel-scl2003.url https://github.com/riseclipse/riseclipse-metamodel-scl2003.git
25+
git config submodule.riseclipse/riseclipse-ocl-constraints-scl2003.url https://github.com/riseclipse/riseclipse-ocl-constraints-scl2003.git
26+
27+
git submodule init
28+
git submodule update
2529
```
2630

2731
## IntelliJ

0 commit comments

Comments
 (0)