m (Minor rewordings) |
m (Fix the ssh command for creating the ~/public_git dir) |
||
Line 5: | Line 5: | ||
==== Create a <code>public_git</code> directory in your home directory on fedorapeople.org ==== | ==== Create a <code>public_git</code> directory in your home directory on fedorapeople.org ==== | ||
<pre>ssh your_fedora_username@fedorapeople.org mkdir ~/public_git</pre> | <pre>ssh your_fedora_username@fedorapeople.org "mkdir ~/public_git"</pre> | ||
==== Put your git repository in <code>~/public_git</code> ==== | ==== Put your git repository in <code>~/public_git</code> ==== |
Revision as of 22:40, 3 October 2008
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.
Create a public_git
directory in your home directory on fedorapeople.org
ssh your_fedora_username@fedorapeople.org "mkdir ~/public_git"
Put your git repository in ~/public_git
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 your_fedora_username@fedorapeople.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 your_fedora_username@fedorapeople.org: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
See your project in gitweb
You can see your project listed in gitweb once the project list updates (hourly). Note that this URL may change.