基本
設定
.bashrcに
# localの場合 export CVSROOT=/path/to/cvsroot # pserverの場合 export CVSROOT=:pserver:oppara@www.example.com:/path/to/cvsroot # sshの場合 export CVS_RSH=ssh; export CVSROOT=:ext:oppara@www.example.com:/path/to/cvsroot
cvsrootの初期化
$ cvs init
リポジトリにプロジェクトを登録
$ cvs import -m '' projname oppara start
ファイルやディレクトリを追加
$ cvs add newfile
ファイルやディレクトリの削除
$ rm file $ cvs rm file
タグ付け
$ cvs tag tagname [file]
コミット
$ cvs com -m '' [file]
作業用のディレクトリの破棄
$ cvs re -d dirname
エキスポート
# リビジョン、タグ指定 $ export -r v1_0 -f [-d dirname] projname # 日付指定 $ export -D yyyy-mm-dd -f [-d dirname] projname
その他
diff
$ cvs diff -uBb file
ファイルの詳細な情報を表示
$ cvs st -v file
履歴表示
$ cvs history file