YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* cloneでブランチ [#i5c8dcb0]
** ユースケース [#xa606327]
*** 1. リポジトリをcloneしてブランチを作る [#v9fa5d35]
hg clone project01 project01-new
*** 2. ブランチで作業する [#w9e43a07]
cd project01-new
vi 1.txt
hg ci -m 'update 1.txt (branch)'
*** 3. 元のリポジトリで作業する [#t249afe9]
cd ../project01
vi 1.txt
hg ci -m 'update 1.txt (original)'
*** 4. ブランチの作業を元のリポジトリにmergeする [#ocf09a...
hg pull ../project01-new # pullして
hg glog # ログを見てリビジョン番号を確...
hg id -n # ワーキングディレクトリのリビ...
hg merge 3 # リビジョン番号を指定してmerge...
*** 5. merge結果をコミットする [#vfc506ab]
hg ci -m 'merge #3'
終了行:
* cloneでブランチ [#i5c8dcb0]
** ユースケース [#xa606327]
*** 1. リポジトリをcloneしてブランチを作る [#v9fa5d35]
hg clone project01 project01-new
*** 2. ブランチで作業する [#w9e43a07]
cd project01-new
vi 1.txt
hg ci -m 'update 1.txt (branch)'
*** 3. 元のリポジトリで作業する [#t249afe9]
cd ../project01
vi 1.txt
hg ci -m 'update 1.txt (original)'
*** 4. ブランチの作業を元のリポジトリにmergeする [#ocf09a...
hg pull ../project01-new # pullして
hg glog # ログを見てリビジョン番号を確...
hg id -n # ワーキングディレクトリのリビ...
hg merge 3 # リビジョン番号を指定してmerge...
*** 5. merge結果をコミットする [#vfc506ab]
hg ci -m 'merge #3'
ページ名: