Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GitHubが落ちた朝は... / github_is_dead

GitHubが落ちた朝は... / github_is_dead

Presented on PHP BLT #3 #phpblt
http://phpblt.connpass.com/event/25341/

Jun Watanabe

March 01, 2016
Tweet

More Decks by Jun Watanabe

Other Decks in Programming

Transcript

  1. ී௨΍Δͱ͖ mkdir php_blt_03.git cd php_blt_03.git git init --bare --shared cd

    ../ cd php_blt_03 git remote add --mirror localbare /Users/rela/php_blt_03.git git push --mirror localbare master
  2. ϕΞϦϙδτϦʹมߋ [core] repositoryformatversion = 0 filemode = true bare =

    false logallrefupdates = true ignorecase = true precomposeunicode = true [remote "origin"] url = [email protected]:rela1470/php_blt_03.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master → true
  3. git daemonىಈ Git For Windows(msysgit)ͷCUIͰ git daemon --enable=receive-pack --base-path=/C/Users/rela --export-all

    Ͱgit-daemon-export-okΛ࡞Βͳͯ͘΋શެ։ —enable=receive-pack ͰpushڐՄ
  4. ࢼͯ͠ΈΑ͏! $ cd php_blt_03/ $ git remote add ikenie git://192.168.93.7/php_blt_03.git

    $ git fetch ikenie From git://192.168.93.7/php_blt_03 * [new branch] master -> ikenie/master
  5. ϩʔΧϧͷgitΛ ϕΞϦϙδτϦʹมߋ $ pwd /Users/Watanabe/php_blt_03 $ ll total 520 drwxr-xr-x

    5 Watanabe staff 170 2 26 18:15 . drwxr-xr-x+ 50 Watanabe staff 1700 2 26 18:15 .. drwxr-xr-x 12 Watanabe staff 408 2 26 18:15 .git -rw-r--r-- 1 Watanabe staff 12 2 26 18:15 README.md -rw-r--r-- 1 Watanabe staff 259625 2 26 18:15 abd6e4b427db9a9735b72c035b88f016.png
  6. ϩʔΧϧͷgitΛ ϕΞϦϙδτϦʹมߋ [core] repositoryformatversion = 0 filemode = true bare

    = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote "origin"] url = [email protected]:rela1470/php_blt_03.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master → true
  7. ࢼͯ͠ΈΑ͏! $ cd php_blt_03/ $ git remote add ikenie ssh://[email protected]/Users/Watanabe/

    php_blt_03.git $ git fetch ikenie Password: From ssh://192.168.92.18/Users/Watanabe/php_blt_03 * [new branch] master -> ikenie/master
  8. ࢼ͠ʹܨ͍ͰΈΔ Watanabe-no-MacBook-Pro:~ Watanabe$ ssh [email protected] [email protected]'s password: Microsoft Windows [Version

    10.0.10586] (c) 2015 Microsoft Corporation. All rights reserved. rela@RELA-TABLET C:\Users\rela>
  9. gitܨ͕Δ͔ͳ? $ git clone ssh://[email protected]/C/Users/rela/php_blt_03.git Cloning into 'php_blt_03'... [email protected]'s password:

    packet_write_wait: Connection to 192.168.93.7: Broken pipe fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.