What does this green icon mean in Github? I know the commit link takes me to another repository. I need to do something similar. Is this a symlink? Or a submodule? Being still somewhat new to git, I'm wondering how I can replicate this myself. Once created, how do I update this external dependency?
This is a submodule: a link to a specific commit in another repository at a different URL. The repository will be cloned when git submodule update --init
is run, and then the referenced commit (784fd39
) will be checked out.
You can create submodules using git submodule add <url> <directory>
, which will add a submodule reference for the given URL at the directory you specify, in the current working directory.
You can use this method here. It's from another question in So, That topic is What does a grey icon in remote GitHub mean You can ignore submodule step which is very complex.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With