dev:notes:git
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:notes:git [2015/01/29 17:50] – created redox | dev:notes:git [2023/11/24 21:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
# Git | # Git | ||
- | ## | + | ## |
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 | ||
+ | |||
+ | ## Clone repository with submodules | ||
+ | |||
+ | git clone --recursive git@theserver:/ | ||
+ | |||
+ | |||
+ | ## Update submodules | ||
+ | |||
+ | 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/attic/dev/notes/git.1422553827.txt.gz · Last modified: 2023/11/24 21:55 (external edit)