BETA git hosting support
fedorapeople.org now has support for hosting git repositories including accessing them via the git:// protocol for anonymous downloads as well as providing gitweb. This should be considered beta.
public_git directory in your home directory on fedorapeople.org
ssh email@example.com "mkdir ~/public_git"
Put your git repository in
For example, here is how to create a repository on your local system and upload it:
mkdir repo.git cd repo.git git init --bare touch git-daemon-export-ok cd .. scp -r repo.git firstname.lastname@example.org:public_git/
Pushing to your repository
At this point your new repository is still empty. You can push to it from a local repository with a little setup:
cd /path/to/local/repo git remote add fedorapeople email@example.com:public_git/repo.git git push --mirror fedorapeople
Cloning your repository
To clone your repository, use a command similar to:
git clone git://fedorapeople.org/~your_fedora_username/repo.git
It is also possible to clone your project via the http:// protocol. In order for this to work, you must arrange to have
git-update-server-info run whenever you update your repository. Typically, this is done with a post-update hook script. However, the user home directories on fedorapeople.org are mounted with the noexec option, which prevents the script from running. Instead, you may create a symbolic link to
git-update-server-info in the hooks directory of your repository:
ssh ~firstname.lastname@example.org cd ~/public_git/repo.git/hooks ln -svbf /usr/bin/git-update-server-info post-update
You can clone your repository over http:// with a command similar to:
git clone http://your_fedora_username.fedorapeople.org/git/repo.git/
Browse your project via gitweb
You can see your project listed in gitweb once the project list updates (hourly). Note that this URL may change.