vc

git の個人的慣習としてつくるレポジトリとブランチの初期設定

フォークの場合、元のレポジトリを ssh:/gw/~uuu/git-repos/xxx に clone しておく。 新規の場合、同じ場所に単に空のレポジトリを作る。・レポジトリ origin: 非公開の中央レポジトリ、基本的に一人用 git clone ssh://gw/~uuu/git-repos/xxx public: (公…

git branch and merge

"dev" というブランチを作る。 git branch dev dev に移動 git checkout dev いろいろかきかえる git commit ブランチ前にもどる git checkout master

git-svn でレポジトリ変換

git clone svn+ssh://.... newdir で変換。 svn では複数のプロジェクトが一つのレポジトリにあったりするので、 ルートディレクトリ直下のディレクトリをひとつのgitレポジトリとするのがいい。初期状態だとgcかかってないので、かけること。更新は git-svn…

git undo

コミットログの編集 git commit --amend local repository を前回のコミット前の状態に戻す git reset --soft HEAD^ ワークスペース、index, local repository を前回のコミット時の状態に戻す (更新された実体ファイルも戻す) git reset --hard

git から svn を透過的に使う

Tracking and contributing to the trunk of a Subversion-managed project: # Clone a repo (like git clone): git-svn clone http://svn.foo.org/project/trunk # Enter the newly cloned directory: cd trunk # You should be on master branch, double-c…

CVS--Concurrent Versions System (in Japanese) - キーワード置換

http://www.linkclub.or.jp/~tumibito/soft-an/cvs/cvs-man/cvs-ja_12.html $Id$と$Log$はLiLFeSでも使われている。

svn co, svn ci

svn commit と svn checkout の略。 省略前よりも対称性が高い。

あとから trunk

svn mkdir REPOS/trunk cd WORK for f in *; do svn mv REPOS/$f REPOS/trunk/$f; done svn switch REPOS/trunk ただし、 コピーがディープコピーになってしまってるかも?

svn cleanup が失敗する

svn: Can't copy '.svn/tmp/text-base/XXX.svn-base' to 'XXX.tmp': No such file or directory cp -p .svn/text-base/{.*,*} .svn/tmp/text-base/ でなぜか復旧した。

Subversion バックアップ

http://subversion.bluegate.org/doc/book.html#svn.reposadmin.maint.backup [2005-11-05-1]は並行動作時にリポジトリ読み取りの atomicity が保証されていない。 svnadmin hotcopy か、そのwrapperを使う。

CVS vs. SVN

cvs -d repos get fltk svn co repos/trunk fltk cvs update -dP svn update cvs add name svn add name rm -f name svn remove name cvs remove name mv name newname svn move name newname cvs remove name cvs add newname cvs commit svn commit cvs di…

import & checkout -- Subversion FAQ

すでにあるディレクトリを作業ディレクトリとして継続して使いたいときの import (相当の方法) http://subversion.tigris.org/faq.html#in-place-import # svn mkdir file:///root/svn-repository/etc \ -m "Make a directory in the repository to corres…

Dave Brondsema's Blog - Using Cygwin, Keychain, SVN+SSH and TortoiseSVN in Windows

http://brondsema.net/blog/index.php/2005/05/03/using_cygwin_keychain_svn_ssh_and_tortoi c:\Cygwin\bin\bash.exe --login -c "/usr/bin/ssh %*"

svn switch

http://subversion.bluegate.org/doc/re28.html リポジトリが引っ越したときの、.svn の中身だけの書き換え。 [2006-06-26-1]代替 例えばホスト名が変更されたり、URLスキーマが 変更されたり、リポジトリパスURLの先頭部分のどこかが変更されるような場合も…

Subversion のリポジトリの引越し

基本的には、svn move URL URL をして、 新しく svn checkout で完了、のはず。 でも、全部コミットしないまま move した場合、 .svn/entries に書かれているリポジトリパスを書き換えればよい。 find . -name entries | xargs perl -pe's/.../.../' で問題…