One of my favorite features is wildcard repositories which makes it super easy to have normal users create as many repositories as they can imaging without having to bother a git-admin.
To setup a sandbox for each user you must first enable wildcard repositories in
~/.gitolite.rc. You do this by setting
After that you just need to configure the userspace like this1:
Note the use of
CREATOR, this is a variable signifying the user that creates and accesses the repository. The
CREATOR can even delegate permissions2 to other users if needed.
To get your locally created repository up on the new upstream, you first add the new remote and then you just push it up.
For convenience you can also make you local repository track the new upstream using
git branch --set-upstream-to3 which will save you a lot of key strokes4 in the long run.
That’s it! - Hope you enjoy wildcard repositories as much as I do.
Note you’ll need at least git version 1.8.0 for
git branch --set-upstream-to.↩
When you track a branch you don’t have to provide the full refspec each time you push or pull.↩