diff --git a/.gitmodules b/.gitmodules index 7d3bc10..e69de29 100755 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "Modules"] - path = Modules - url = git@github.com:hmaxnl/DotBased.git diff --git a/Modules b/Modules deleted file mode 160000 index c1d18d5..0000000 --- a/Modules +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c1d18d5b47f3dec81c5c153b8a66daf921b3eeef diff --git a/git-cmd.md b/git-cmd.md index 3e4ba00..0fbddcf 100755 --- a/git-cmd.md +++ b/git-cmd.md @@ -1,3 +1,32 @@ - + + +# Submodule +## Add submodule +git submodule add + +git commit -m "Added the submodule to the project." + +git push + +git submodule update --init --recursive + +## Submodule commit + +cd + +git add . + +git commit -m "Added new commits from the submodule repository" + +git push + +## Submodule summary +git config --global status.submoduleSummary true + + ## Update all submoduels git submodule update --remote --merge + + +## Remove submodule +git rm