Mercurial > hgbook
view en/examples/ch01/new @ 838:d1f676a6a4b3 default tip
update mq chapter.
propagate ef53d025f410.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 03 Dec 2009 01:26:08 +0900 |
parents | a17d6390a480 |
children |
line wrap: on
line source
#!/bin/bash cat > hello.c <<EOF int main() { printf("hello world!\n"); } EOF cat > goodbye.c <<EOF int main() { printf("goodbye world!\n"); } EOF #$ name: init hg init myproject #$ name: ls ls -l #$ name: ls2 ls -al myproject #$ name: add cd myproject cp ../hello.c . cp ../goodbye.c . hg add hg status #$ name: commit hg commit -m 'Initial commit'