User Tools

Site Tools

dev:notes:git

Git

Clone repository with submodules on a remote branch

git clone git@theserver:/therepo.git
git fetch origin
git checkout thebranch
git submodule update --init --remote

Clone repository with submodules

git clone --recursive git@theserver:/therepo.git

Update submodules

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
Permalink dev/notes/git.txt · Last modified: 2015/01/29 19:30 by Hyde179

oeffentlich