Rails3で自分専用のブログを作る(9)ー github.comにリポジトリを登録
今回のプログラムは公開するつもりなので、github.comにリポジトリを登録しました。
すでにアカウントとssh-keyは登録してあるので、Webから登録します。DIY Blogとしておきました。
あとの作業は Creating a new repository - GitHub Help を参考にしました。
まず、Ubuntuでユーザー名とメールアドレスを登録します。
$ git config --global user.name "Masatoshi Itagaki" $ git config --global user.email "xxxxxxxx@xxxxx.xx"
つぎに、リポジトリ用のディレクトリを作成し、リポジトリを作成しリモートリポジトリを登録します。
$ mkdir DIY-Blog $ cd DIY-Blog $ git init $ touch README $ git add README $ git commit -m "first commit" $ git remote add origin git@github.com:masa-ita/DIY-Blog.git $ git push origin master