Jump to content

Git repositories in home directories

From HW wiki
Revision as of 09:34, 23 November 2012 by Sojka (talk | contribs) (Created page with "A personal git repository can be created in your home directory on rtime server this way: ssh ''login''@rtime.felk.cvut.cz mkdir $HOME/''myproject''.git cd $HOME/''myproject'")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A personal git repository can be created in your home directory on rtime server this way:

ssh login@rtime.felk.cvut.cz
mkdir $HOME/myproject.git
cd $HOME/myproject.git
git init --bare --shared=everybody

If you want to make your repository public, it has to be accessible by user gitdaemon. It is usually sufficient to give "x" permission to your home directory:

setfacl -m user:gitdaemon:x $HOME

Read-only access for public repositories is possible with the following command:

git clone git://rtime.felk.cvut.cz/~yourlogin/repo-name.git