cg-admin-setuprepo(1)
NAME
cg-admin-setuprepo - setup a public repository
SYNOPSIS
cg-admin-setuprepo [-g GROUP] REPOSITORY.sp
DESCRIPTION
Arraypull from it. You need to run this command before you will be
able to push into the repository for the first time, but you will
be also unable to pull from the repository until you push into it
at first..sp Therefore the workflow is to first init a regular
private repository, then use this command to create the public
one, then add the appropriate remote branch (cg-branch-add origin
repository..sp Use cg-init(1) if you want to instead create a new
GIT project..sp The command will create the repository to reside
in REPOSITORY (either local path or git+ssh URL; the directory
must not exist before calling this command). By default, it will
be world-readable, but writable only by you. If you want to make
it possible for multiple users to push, create a group for them
and use the -g parameter, which will make cg-admin-setuprepo(1)
set up the permissions properly..sp Note that in case you are using cg-admin-setuprepo with SSH URL instead of a local path, you
need a full shell access at the remote machine, the restricted
git-shell access is not enough..sp The repository will also be
set up so that git-update-server-info will be automagically reran after each push, in short making it suitable for HTTP access..sp Note that you might need to do other additional steps,
like touching the git-daemon-export-ok file if you want to make
the repository accessible by the git daemon (serving the
git://... URIs)..sp
OPTIONS
- Arraycommand) will have write (push) access.
-h, --help - Print usage summary.
- --long-help
- Print user manual. The same as found in
- cg-admin-setuprepo(1).
NOTES
Arrayare not available on your system or with your GIT installation.
In that case, in order to have your repository properly accessible with HTTP, you need to add this to .git/hooks/post-update
(and then make it eXecutable):.sp
#!/bin/sh
exec git-update-server-info
COPYRIGHT
Copyright © Petr Baudis, 2005.sp
SEE ALSO
- Array12/05/2006 CG-AD