• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

以前試しに作ったTinyURL_helperですが、gitを勉強するにあたってgithubに移行してみました。
http://github.com/satoko/tinyurl_helper/tree/master

その手順を書いてみます。

###公開リポジトリを作る

  1. githubにログイン
  2. ダッシュボードで"Create a Repository"リンクをクリック
  3. Project Name, Descriptioin, Homepage URLを入力し、レポジトリの公開範囲(Anyone)を選択
  4. Submitボタンをクリック

###Next steps:git pushまで
現状svnで管理しているpluginをチェックアウトします
shell>>
svn co http://svn.s21g.com/public/rails/plugins/tinyurl_helper/ tinyurl_helper
cd tinyurl_helper
<<--

Submit後下記のような指示が画面に表示されますが、今回は移行作業なのでtouch READMEなどを飛ばします。
shell>>
mkdir tinyurl_helper
cd tinyurl_helper
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:satoko/tinyurl_helper.git
git push origin master
<<--

実際にやった作業
shell>>
$ git-init
$ git-add .
$ git status
$ git commit -m "first commit"
$git remote add origin git@github.com:satoko/tinyurl_helper.git
$git push origin master
<<--

(注)public_keyをgithubに設定しておき、pagentにprivate_keyを読み込ませてsshでagent-forward設定をしておきます。でpush!

posted by satoko satoko on Mon 12 May 2008 at 01:08 with 0 comments