Home > CodeReposとgithubを併用する

CodeReposとgithubを併用する

CodeReposをありがたく使わせてもらっているけど、githubにも同じコードを置きたい、ということがよくありますよね。あるんです。以下はそのときのためのメモ。

プロジェクトを始めるとき

  1. CodeReposにファイルやディレクトリ一式 (X) をつくってcommit
  2. githubにレポジトリをつくる。(自分用のclone URL を Yとする)
  3. git svn clone で CodeReposにつくった一式 (X) をcheckout
  4. checkoutしたディレクトリで、git remote add github Y
  5. git remote push github

この手順でやればOK。 先にCodeReposでcommitしておいてからgit svnでcheckoutというところがミソなのかなと。

refe2-vim というプロジェクトをはじめることを考えます。

  1. mkdir $CODEREPOS/lang/vim/refe2-vim (X)
  2. create new github repository → http://github.com/mootoh/refe2-vim/ (Y: git@github.com:mootoh/refe2-vim.git)
  3. git svn clone http://svn.coderepos.org/share/lang/vim/refe2-vim
  4. cd refe2-vim
  5. git remote push github

だいたいこんなかんじ。

日々commitするとき

  • ローカルに commit
  • CodeReposにcommit (git svn dcommit)
  • github にpush (git remote push github)

でOK。


ToDo: Mercurialも混ぜてみる

Comments:2

kana 08-06-15 (Sun) 17:16

git-svn cloneしたリポジトリをベースにしなくても同じことはできたと思います。

mootoh 08-06-15 (Sun) 17:21

kanaさん:

コメントありがとうございます。調べっぷりが足りてませんで…

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://blog.deadbeaf.org/2008/06/15/coderepos-with-github/trackback/
Listed below are links to weblogs that reference
CodeReposとgithubを併用する from mootoh.log

Home > CodeReposとgithubを併用する

Feeds

Return to page top