hgbook
view en/examples/ch01/new @ 1028:013e09cb852f
better french translation of 'making mercurial more trusting
author | Romain PELISSE <belaran@gmail.com> |
---|---|
date | Wed Apr 21 17:26:00 2010 +0200 (2010-04-21) |
parents | |
children |
line source
1 #!/bin/bash
3 cat > hello.c <<EOF
4 int main()
5 {
6 printf("hello world!\n");
7 }
8 EOF
10 cat > goodbye.c <<EOF
11 int main()
12 {
13 printf("goodbye world!\n");
14 }
15 EOF
17 #$ name: init
19 hg init myproject
21 #$ name: ls
23 ls -l
25 #$ name: ls2
27 ls -al myproject
29 #$ name: add
31 cd myproject
32 cp ../hello.c .
33 cp ../goodbye.c .
34 hg add
35 hg status
37 #$ name: commit
39 hg commit -m 'Initial commit'