From dfa417145e0e90928a9d6011df8c26324c843023 Mon Sep 17 00:00:00 2001 From: Erik Date: Wed, 1 May 2024 14:06:42 +0200 Subject: [PATCH] Update AddSubmoduleToGitRepo --- AddSubmoduleToGitRepo.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/AddSubmoduleToGitRepo.md b/AddSubmoduleToGitRepo.md index 17ae8d3..78f69ab 100644 --- a/AddSubmoduleToGitRepo.md +++ b/AddSubmoduleToGitRepo.md @@ -1,12 +1,12 @@ -# How to add submodules to a gitrepo - -If you want to use another git repo within your repo but still get updates from -or contribute to the upstream repo without breaking things, then you need to add -the repo as a submodule. this tells git that this folder is another repo and it -will add a link to it and not cause problems. - -Step1: -go to your repo. Use the following command instead of pull: -` - git submodule add -` +# How to add submodules to a gitrepo + +If you want to use another git repo within your repo but still get updates from +or contribute to the upstream repo without breaking things, then you need to add +the repo as a submodule. this tells git that this folder is another repo and it +will add a link to it and not cause problems. + +Step1: +go to your repo. Use the following command instead of pull: +``` + git submodule add +```