...

/

A Worked Example

A Worked Example

To get a better understanding of "submodules," learn about them with the help of an example.

Maintainer

Let’s say Alice maintains a library:

1	mkdir -p lgthw_submodules
2	cd lgthw_submodules
3	mkdir alicelib
4	cd alicelib
5	git init
6	echo 'A' > file1
7	git add file1
8	git commit -am 'A'
9	git checkout -b
...