ろむのシ的メモ+α

Web系のブラウザゲーのツールとか作ったりつくらなかったりしてます

gitとsvnの連携というかメモ

git-svnがインストールされてる前提として・・・

git svn clone -s {svnURI} {outputディレクトリ名} # svnからコピー
git clone --bare {outputディレクトリ名} {outputディレクトリ名.git} # bare化?
chown -R apache:apache {outputディレクトリ名.git}
cd {outputディレクトリ名.git}
git update-server-info

とりあえずこれでOK。
WebDavとかで公開の場合はたとえイントラで使うとしても認証必須。
どうせなら

git svn clone -s --bare  {svnURI} {outputディレクトリ名}

で1発でbare化?させてくれたらいいのに・・・

追記・・・
これだけではまだだめだった・・後で調べよう・・・