Cloning the FLOW3 Base Distribution

Upload public ssh-key

  1. if not done yet, register a user account on
  2. log in to with your user account.
  3. edit your profile(settings/SSH Public Keys) and upload public ssh key

Clone and setup

This assumes you have set up ssh (username and port) and git (username and email) already. You can copy and paste the following commands directly.

git clone --recursive git:// FLOW3
cd FLOW3
scp -p -P 29418 :hooks/commit-msg .git/hooks/
git config --global url."ssh::29418".pushInsteadOf git://
//git config remote.origin.pushurl ssh://
git config remote.origin.push HEAD:refs/for/master
git submodule foreach 'scp -p -P 29418 :hooks/commit-msg .git/hooks/'
//git submodule foreach 'git config remote.origin.pushurl ssh://`basename $path`.git'
git submodule foreach 'git config remote.origin.push HEAD:refs/for/master'
git submodule foreach 'git checkout master; git pull'

(Lots of output omitted)

We are using url.<>.pushInsteadOf now, and not pushurl. For some updated info on that, see

You now have a clone of the FLOW3 Base Distribution.

What happens is the following:
  • Clone the FLOW3 distribution into the folder FLOW3. Do this recursively, i.e. set up submodules right away.
  • Change into the new directory
  • Install the gerrit commit-msg hook for the distribution clone
  • Configure as default push target for submitting code for review (two lines)
  • Install the gerrit commit-msg hook for all submodule clones
  • Configure default push target for all submodule clones (two lines)
  • Switch all submodules to the master branch

Updated by Jacob Floyd over 9 years ago ยท 8 revisions