Sfoglia il codice sorgente

Merge pull request #837 from kazmasaurus/add-git-submodule

git-submodule: Add tldr page for the git-submodule command.
Felix Yan 9 anni fa
parent
commit
cf05add3ff
1 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  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`