git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
git [2024/04/11 16:58] – [git at dlma.com] dblume | git [2025/04/02 22:30] (current) – Add git config pack.threads limit dblume | ||
---|---|---|---|
Line 210: | Line 210: | ||
git$ cd testcode.git/ | git$ cd testcode.git/ | ||
testcode.git$ git init --bare | testcode.git$ git init --bare | ||
+ | testcode.git$ git config pack.threads 8 # Otherwise clone might fail with " | ||
</ | </ | ||
Line 250: | Line 251: | ||
The submodule one is an optimization for the more general: | The submodule one is an optimization for the more general: | ||
+ | <code bash> | ||
+ | git submodule update --recursive | ||
+ | </ | ||
+ | |||
+ | ====== Submodules ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Cloning a repo doesn' | ||
+ | |||
+ | <code bash> | ||
+ | git submodule update --init --recursive | ||
+ | </ | ||
+ | |||
+ | Git pull and checkout don't update submodules. To actually update them, you have to run the following every time you switch branches or pull. | ||
+ | |||
<code bash> | <code bash> | ||
git submodule update --recursive | git submodule update --recursive |
git.1712879885.txt.gz · Last modified: 2024/04/11 16:58 by dblume