We'll start by creating three clones of the JGit repository: a normal, a bare, and a mirror clone. When we create the first clone, we can use that as a reference repository for the other clones. In this way, we can share the objects in the database, and we don't have to transfer the same data three times:
$ git clone https://git.eclipse.org/r/jgit/jgit $ git clone --reference jgit --bare https://git.eclipse.org/r/jgit/jgit $ git clone --mirror --reference jgit https://git.eclipse.org/r/jgit/jgit jgit.mirror