Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this green icon mean in a github repository?

Tags:

git

github

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?

Git repository - what's up with the green icon?

like image 857
TimDog Avatar asked Jan 21 '13 22:01

TimDog


2 Answers

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.

like image 54
cdhowie Avatar answered Nov 06 '22 04:11

cdhowie


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.

like image 39
Tran Hung Avatar answered Nov 06 '22 04:11

Tran Hung