<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>MemberManual/VersionControl/darcs</title><revhistory><revision><revnumber>1</revnumber><date>2013-10-17 08:43:22</date><authorinitials>DaniilFrumin</authorinitials><revremark>Initial information about using darcs at HCoop</revremark></revision></revhistory></articleinfo><para>This page describes the ways one can use darcs at HCoop </para><section><title>Hosting a darcs repository</title><para>You can use your web space for hosting a public darcs repository. This section descrives the steps you need to perform in order to do that. </para><section><title>Creating a repository on the server</title><para>First of all, you want to have a darcs repository accessible from the web. In order to do that you </para><itemizedlist><listitem override="none"><para>need to log in via ssh and intialize a repository. </para></listitem></itemizedlist><screen><![CDATA[cd ~/public_html
mkdir repo
cd repo
darcs initialize]]></screen><para>now your repository can be cloned by simpl doing  </para><screen><![CDATA[darcs get http://hcoop.net/~USER/repo]]></screen><para>Of course, you can host a repository on your own <ulink url="https://wiki.hcoop.net/MemberManual/VersionControl/darcs/MemberManual/GettingDomain#">domain name</ulink> too. </para></section><section><title>Pushing changes to the repository</title><para>You can push patches from your local repository to the repository hosted at HCoop using your ssh login: </para><screen><![CDATA[darcs push ssh://USER@ssh.hcoop.net:public_html/repo]]></screen><para>this command will prompt you for your password, you can set up <ulink url="https://wiki.hcoop.net/MemberManual/VersionControl/darcs/MemberManual/ShellAccess/PasswordlessLogin#">passwordless login</ulink> if you want to avoid that. </para></section></section></article>