瀏覽代碼

git-submodule: Add tldr page for the git-submodule command.

Update git-submodule to pass linter requirements.
Zak Remer 9 年之前
父節點
當前提交
b184ceca66
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      pages/common/git-submodule.md

+ 15 - 0
pages/common/git-submodule.md

@@ -0,0 +1,15 @@
+# git submodule
+
+> Inspects, updates and manages submodules.
+
+- Install a repository's specified submodules:
+
+`git submodule update --init --recursive`
+
+- Add a git repository as a submodule:
+
+`git submodule add {{repository-url}}`
+
+- Update every submodule to its latest commit:
+
+`git submodule foreach git pull`