This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
git [2014/09/02 18:00] – [Create a Submodule (sub repository)] admin | git [2017/04/28 14:07] – [Master-Branch hoch schieben] admin | ||
---|---|---|---|
Line 35: | Line 35: | ||
==== Master-Branch hoch schieben ==== | ==== Master-Branch hoch schieben ==== | ||
- | Schiebt die lokale | + | Schiebt die lokale |
git push origin master | git push origin master | ||
Line 44: | Line 44: | ||
- | ====== Git Submodules ====== | + | ====== Git Submodules |
===== Create a Submodule ===== | ===== Create a Submodule ===== | ||
Line 54: | Line 54: | ||
Example: | Example: | ||
+ | cd / | ||
git submodule add https:// | git submodule add https:// | ||
git add . | git add . | ||
Line 72: | Line 73: | ||
When updating a submodule its required to tell the parent repository to use the latest downloaded version. | When updating a submodule its required to tell the parent repository to use the latest downloaded version. | ||
- | cd /PATH/TO/REPOS/SUBMODULE/ | + | cd /YOUR/CLONED/REPO/SUBMODULE/ |
git pull origin master | git pull origin master | ||
cd / | cd / | ||
git commit -am " | git commit -am " | ||
git push origin | git push origin | ||
+ | |||
+ | ===== Pull ===== | ||
+ | |||
+ | git pull origin | ||
+ | git submodule update |