dev:notes:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
dev:notes:git [2015/01/29 17:55] – [Init repository with its submodules] redox | dev:notes:git [2015/01/29 18:30] – [Clone repository with submodules] redox | ||
---|---|---|---|
Line 4: | Line 4: | ||
git clone git@theserver:/ | git clone git@theserver:/ | ||
- | git fetch | + | git fetch origin |
git checkout thebranch | git checkout thebranch | ||
git submodule update --init --remote | git submodule update --init --remote | ||
Line 11: | Line 11: | ||
git clone --recursive git@theserver:/ | git clone --recursive git@theserver:/ | ||
- | | + | |
## Update submodules | ## Update submodules | ||
git submodule update --remote | git submodule update --remote | ||
+ | |||
+ | |||
+ | ## Clone repos, switch to remote branch | ||
+ | |||
+ | git clone git@theserver:/ | ||
+ | git checkout -b thebranch origin/ | ||
+ | or | ||
+ | git clone git@theserver:/ | ||
+ | git fetch origin | ||
+ | git checkout thebranch | ||
+ |
/home/share/www/redox.ws/wiki/data/pages/dev/notes/git.txt · Last modified: 2023/11/24 21:55 by 127.0.0.1