git

https://github.com/katsuya1234

1. Git_push to Heroku

  1. Project directory の中で
      * $ rails new heroku_app
      * $ cd heroku_app
      * $ git init : 既存のディレクトリでのリポジトリの初期化 
    
  2. ファイル取る
      * $ git add .
      * $ git commit -m 'first import'
    
  3. 送り先指定
      * $  git remote add origin [email protected]:<<ユーザー名>>/<<プロジェクト名>>.git
    
  4. Push!!
      * $ git push heroku master
    
  5. Git_get

2. DL

  * git clone [email protected]:<<ユーザー名>>/FlickRemover.git
     * ssh-keygenとかでキーを作成し、登録しとく必要
     * git clone [email protected]:/home/katsuya/apps/promotionapp/.git testprom 
  * git commit -a -m "clone commit"
  * git push origin master
     * 『origin(レポジトリサーバー)』に『master(ローカル)』をアップデート
  * git clone rsync://example.com/path/to/repo.git/
  * git clone http://example.com/path/to/repo.git/
  * git clone https://example.com/path/to/repo.git/
  * git clone git://example.com/path/to/repo.git/
  * git clone ssh://[user@]example.com[:port]/path/to/repo.git/

3. 例

  * git clone [email protected]:/home/katsuya/apps/promotionapp/.git testprom 
  * git clone [email protected]:/Users/uenoyama718/Sites/Rails3app/giireport/.git giigame
  * git push  (path不要) 
最終更新:2012年02月17日 11:36