Gitlink
Gitlink is a term used in Git to describe a special type of tree entry that represents a submodule reference within a superproject. A gitlink is stored in the index as a tree entry with mode 160000 and an object id that corresponds to a specific commit in the submodule’s repository. In essence, the superproject does not store the submodule’s files; it stores a pointer to a particular commit in the separate submodule repository.
How it works: When a submodule is added with git submodule add, Git creates a subdirectory for
Updating a submodule involves changing the submodule’s commit to point to a newer state, then committing the
Notes: A gitlink is not a regular file blob; it is a special tree entry that points