befehle.txt

Sun, 07 Dec 2008 13:19:16 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 07 Dec 2008 13:19:16 +0100
changeset 6
cec803c23471
parent 5
8bfc07358be1
permissions
-rw-r--r--

Explain new possibility of public repository manipulation.

michael@6 1 Pour cloner un dépôt publique ou privé
michael@6 2 $ hg clone http://hg.domain.tld/depotpublique
michael@1 3 $ hg clone https://user@hg.domain.tld/depotprive
michael@1 4
michael@4 5 Pour changer le sources:
michael@4 6 $ cd depotprive
michael@4 7 $ echo 'Nochwas' >>irgendwas.txt
michael@4 8 $ hg commit
michael@4 9 $ hg push
michael@4 10
michael@4 11 Pour aktualiser:
michael@4 12 $ cd depotprive
michael@4 13 $ hg pull
michael@4 14 $ hg update
michael@4 15
michael@4 16 ...oder einfacher:
michael@4 17
michael@4 18 $ hg pull -u
michael@4 19
michael@5 20 Pour mettre à jour ce même dépôt
michael@1 21 $ hg push https://user@hg.domain.tld/depotprive
michael@2 22 abort: 'http://hg.domaine.tld/projet' does not appear to be an hg repository!
michael@2 23 $ chmod 777 -R /home/hg/projet
michael@2 24 $ chown -R wwwdata /home/hg/projet
michael@2 25
michael@2 26 Ou avec SSH2:
michael@3 27 $ hg clone ssh://vous@ssh.domaine.tld//home/hg/public/projecto
michael@3 28 $ hg push ssh://vous@ssh.domaine.tld//home/hg/public/projeto
michael@4 29
michael@4 30 ...oder einfacher:
michael@4 31
michael@4 32 $ cd projecto
michael@4 33 $ hg commit
michael@4 34 $ hg push

mercurial