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