User Tools

Site Tools


dev:notes:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:notes:git [2015/01/29 19:28]
redox [Clone repository with submodules on a remote branch]
dev:notes:git [2019/12/25 15:40] (current)
Line 11: Line 11:
  
     git clone --recursive git@theserver:/​therepo.git     git clone --recursive git@theserver:/​therepo.git
-    ​+ 
 ## Update submodules ## Update submodules
  
     git submodule update --remote     git submodule update --remote
 +
 +
 +## Clone repos, switch to remote branch
 +
 +    git clone git@theserver:/​therepo.git
 +    git checkout -b thebranch origin/​thebranch
 +    or
 +    git clone git@theserver:/​therepo.git
 +    git fetch origin
 +    git checkout thebranch
 +
/home/share/www/redox.ws/wiki/data/pages/dev/notes/git.txt · Last modified: 2019/12/25 15:40 (external edit)