Update AddSubmoduleToGitRepo
parent
0263329cd7
commit
dfa417145e
1 changed files with 12 additions and 12 deletions
|
@ -1,12 +1,12 @@
|
||||||
# How to add submodules to a gitrepo
|
# How to add submodules to a gitrepo
|
||||||
|
|
||||||
If you want to use another git repo within your repo but still get updates from
|
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
|
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
|
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.
|
will add a link to it and not cause problems.
|
||||||
|
|
||||||
Step1:
|
Step1:
|
||||||
go to your repo. Use the following command instead of pull:
|
go to your repo. Use the following command instead of pull:
|
||||||
`
|
```
|
||||||
git submodule add <link to repo> <path (if no path is provided the current folder is used.)>
|
git submodule add <link to repo> <path (if no path is provided the current folder is used.)>
|
||||||
`
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue