User Tools

Site Tools


tips:linux:gitsubmodule

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
tips:linux:gitsubmodule [2015/04/05 23:24] – created eriktips:linux:gitsubmodule [2015/04/05 23:34] erik
Line 1: Line 1:
 ====== Git Submodules: Adding, Using, Removing, Updating ====== ====== Git Submodules: Adding, Using, Removing, Updating ======
 +
 +To **add** a submodule in the current directory:
 +
 +  git submodule add https://github.com/example
 +  
 +To get the **status** of submodules:
 +
 +  git submodule status
 +  
 +To **update** submodules:
 +
 +  git submodule update
 +  
 +To **remove** a submodule:
 +
 +  git submodule rm example
 +  
 +More info [[https://chrisjean.com/git-submodules-adding-using-removing-and-updating/|here]].
tips/linux/gitsubmodule.txt · Last modified: 2015/11/06 10:01 by erik