SVN学習ノート
3295 ワード
コマンドリファレンス
アプリマニュアル
ユーザパスワードをクリア
rm~/.subversion/auth
ローカルsvn操作を取り消すsvn revert
衝突を解決する
ブランチ処理
コピー分岐
履歴のバージョンを復元
歴史バージョンを現在のバージョンに復元します。
アプリマニュアル
ユーザパスワードをクリア
rm~/.subversion/auth
ローカルsvn操作を取り消すsvn revert
衝突を解決する
ブランチ処理
コピー分岐
svn copy http://svn.example.com/repos/calc/trunk \
http://svn.example.com/repos/calc/branches/my-calc-branch \
-m "Creating a private branch of /calc/trunk."
分岐mergeはメインに戻ります。$ pwd
/home/user/my-calc-branch
$ svn merge http://svn.example.com/repos/calc/trunk
--- Merging r345 through r356 into '.':
U button.c
U integer.c
$ svn commit -m "Merged latest trunk changes to my-calc-branch."// post, ,svn resloved,ci
履歴のバージョンを復元
//
$ cd parent-dir
$ svn log -v
…
------------------------------------------------------------------------
r808 | joe | 2003-12-26 14:29:40 -0600 (Fri, 26 Dec 2003) | 3 lines
Changed paths:
D /calc/trunk/real.c
M /calc/trunk/integer.c
歴史バージョンを現在のバージョンに復元します。
$ svn copy http://svn.example.com/repos/calc/trunk/real.c@807 \
http://svn.example.com/repos/calc/trunk/ \
-m "Resurrect real.c from revision 807."
Committed revision 1390.
$ svn update
A real.c
Updated to revision 1390.
svn履歴バージョンファイルを直接取得するsvn up -r ( r)