Continuous Learning

Startup

Business

Technology

Setup

Share

Remove Submodule from GIT Repo

There is no git submodule rm command, so it takes a bit of manual work to remove a submodule reference in your git repo From (https://git.wiki.kernel.org/articles/g/i/t/GitSubmoduleTutorial_c489.html) Delete the relevant line from the .gitmodules file. Delete the relevant section from .git/config. Run git rm –cached path_to_submodule (no trailing slash). Commit the superproject. Delete the now untracked submodule files.       …

Share

Read more

Using Git Submodules

If you want to reference code from external repositories within your own repository in GIT – you’ll have to use GIT submodules. Let’s say that we have a repo called sandbox, and inside sandbox, we have a lib sub directory that refers to multiple libraries from other repos, looking like the following /sandbox # your …

Share

Read more