tips:linux:gitsubmodule
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tips:linux:gitsubmodule [2015/04/05 16:24] – created erik | tips:linux:gitsubmodule [2015/11/06 02:01] (current) – 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:// | ||
+ | | ||
+ | To get the **status** of submodules: | ||
+ | |||
+ | git submodule status | ||
+ | | ||
+ | To **update** submodules: | ||
+ | |||
+ | git submodule update | ||
+ | | ||
+ | To **remove** a submodule: | ||
+ | |||
+ | git submodule deinit -f example | ||
+ | git rm --cached path/ | ||
+ | rm -rf .git/ | ||
+ | | ||
+ | | ||
+ | More info [[https:// |
tips/linux/gitsubmodule.1428276277.txt.gz · Last modified: 2015/04/05 16:24 by erik