リポジトリ

クローン

 > hg clone orig_repos new_repos

リモートリポジトリのエイリアスを表示する

 > hg paths

クローン元のリポジトリがわかる。

hg pull

1. hanakoがtaroのリポジトリをcloneする

 > hg clone taro hanako

2. taroがリポジトリに変更を加えてcommitする

 > vi 1.txt
 > hg add 1.txt; hg commit 1.txt -m 'edit 1.txt'

3. hanakoがtaroのcommitをpullで取り込む

 > hg pull

この時点で1.txtには修正が反映されてない。

4. updateで修正をワーキングディレクトリに反映する

 > hg update

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2012-07-12 (木) 19:32:27