GoogleCodeにgitのレポジトリを作ってみた

作り方のメモ。

もともとローカルにCVSで管理していたptxを、GoogleCodeのgitレポジトリに移すまで。

gitをインストールして初期設定
 # portmaster devel/git

 $ git config --global user.name bsdaemon
 $ git config --global user.email bsdaemon.dev@gmail.com
CVSからgitに変換
 $ cd ~/local
 $ git cvsimport -v -d /repocvs -C ptx-kmod ptx
GMailのアカウントと、Hostingのプロジェクトを作成する

Google Code Archive - Long-term storage for Google Code Project Hosting.

リモートのアカウントを設定。

Googleアカウントにログインした状態で下記にアクセスすると、~/.netrcの例が表示されるのでコピペ。

https://code.google.com/hosting/settings

リモートのレポジトリをcloneして、CVSから変換したものをpullし、レポジトリにpush
 $ cd ~/remote
 $ git clone https://code.google.com/p/ptx-kmod/
 $ cd ptx-kmod
 $ git pull ~/local/ptx-kmod
 $ git push origin master