Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
GitHubが落ちた朝は... / github_is_dead
Search
Jun Watanabe
March 01, 2016
Programming
0
3.6k
GitHubが落ちた朝は... / github_is_dead
Presented on PHP BLT #3 #phpblt
http://phpblt.connpass.com/event/25341/
Jun Watanabe
March 01, 2016
Tweet
Share
More Decks by Jun Watanabe
See All by Jun Watanabe
10分(25分)でつくる社内Webツール / howto-oidc-webpage
rela1470
0
97
リーグオブ情シス 第二回 / League of Infosys
rela1470
1
1.3k
Kyashでコーポレートエンジニアを初採用して7ヶ月が経ちましたがお元気ですか / ce-night-kyash
rela1470
4
2.9k
じこしょうかい2019 / rela1470-portfolio-2019
rela1470
0
290
255オクテットのドメインはツラみがある! / endless-work
rela1470
1
4.8k
ヤフーの1on1
rela1470
0
430
15分でわかる!WBMPビューアー実装から始めるPHPバイナリ超初心者入門 / php_wbmp
rela1470
1
2.1k
またブラウザアプリの時代が来る!?ORATTAが考えるこれからのゲーム開発戦略とは / oratta_webapp_pwa
rela1470
0
1.7k
API仕様書ってどう運用したらいいの? / api_doc
rela1470
0
1.2k
Other Decks in Programming
See All in Programming
実践 Advanced CallKit 〜快適な通話の実現に向けて〜
mot_techtalk
3
120
Architecture Decision Record (ADR)
nearme_tech
PRO
1
670
rbs-inlineを導入してYARDからRBSに移行する
euglena1215
1
260
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
600
Why Prism?
kddnewton
4
1.7k
長期運用プロダクトの開発速度を維持し続けるためのリファクタリング実践例
wataruss
8
2.7k
月間4.5億回再生を超える大規模サービス TVer iOSアプリのリアーキテクチャ戦略 - iOSDC2024
techtver
PRO
1
790
Increased Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
200
Amazon Neptuneで始める初めてのグラフDB ー グラフDBを使う意味を考える ー
satoshi256kbyte
2
250
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
1.9k
Ebitengineの1vs1ゲーム WebRTCの活用
ponyo877
0
370
Scala アプリケーションのビルドを改善してデプロイ時間を 1/4 にした話 | How I improved the build of my Scala application and reduced deployment time by 4x
nomadblacky
1
160
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
43
13k
The Cost Of JavaScript in 2023
addyosmani
42
5.2k
The Invisible Side of Design
smashingmag
295
50k
YesSQL, Process and Tooling at Scale
rocio
167
14k
Producing Creativity
orderedlist
PRO
340
39k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Teambox: Starting and Learning
jrom
131
8.7k
How GitHub (no longer) Works
holman
310
140k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
28
1.6k
GraphQLの誤解/rethinking-graphql
sonatard
65
9.8k
The Invisible Customer
myddelton
119
13k
Visualization
eitanlees
142
15k
Transcript
GitHub͕ མͪͨே... 2016/03/01 PHP BLT #3 Jun Watanabe @rela1470
Jun Watanabe @rela1470 • ͪͺʔ&ࣾձਓ6 • ORATTA, Inc Chief Engineer
• http://rela.red/ ʘWe are hiring!ʗ
Έͳ͞Μ GitHub ΘΕͯ·͔͢!
GitΛͬͯΔํͳΒ ʹཱͭ(͔) ͍ͺʔͪͺʔ͘Γ͑ʔͨʔ ͷօ༷͓͖߹͍͍ͩ͘͞
201601݄28ޕલ9࣌
None
None
ʘUnicorn!ʗ
Ѩඓڣש ͋ͼ͖ΐ͏͔ΜͬͯΑΉΜͩΑ!
όϦόϦίʔυॻ͜͏ͱ ࢥͬͯͨͷʹͳʔ GitHub͕མͪͯΔΜͳΒ ํͳ͍ͳʔ
None
Ͳ͏͢ΕΑ͔͔ͬͨ
3ͭͷબࢶΛ ఏҊ͠·͢
1.༗څΛऔΔ
None
2.όοΫΞοϓΛ͏
None
ORATTA ࣄͰ͖·ͨ͠ ʘWe are hiring!ʗ
ͪΖΜ ༗څ ී௨ʹऔΕ·͢(স ʘWe are hiring!ʗ
όοΫΞοϓ ͯ͠ͳ͔ͬͨ߹
ͦͦGitͱ
ࢄܕ όʔδϣϯཧγεςϜ
ࢄܕ
खݩʹ όοΫΞοϓ ͞ΕͯΔ͡ΌΜ
࠷ۙfetchͯͦ͠͏ͳ ಉ྅Λ୳͢
3.ಉ྅Λੜ͚ᩴʹ͢Δ
ಉ྅ͷPCΛ ੜ͚ᩴʹ ͠Α͏!
ΈΜͳϋοϐʔ ※ͨͩ͠ಉ྅1໊Λআ͘
None
ಉ྅ͷPC͕ Windowsͷ߹
1. git daemonΛ͏ 2. sshͰؤுΔ
1. git daemonΛ͏
Step1 ϩʔΧϧͷgitΛ ϕΞϦϙδτϦʹมߋ
ී௨Δͱ͖ 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
ࠓճۓٸ࣌ͳͷͰ
ಉ྅PCͷ ϫʔΫίϐʔΛ ݩʹ ϕΞϦϙδτϦ Λ࡞Γ·͢
ϫʔΫίϐʔΛࣺͯΔ
ϫʔΫίϐʔΛࣺͯΔ
ϫʔΫίϐʔΛࣺͯΔ
ϕΞϦϙδτϦʹมߋ
ϕΞϦϙδτϦʹมߋ [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
Step2 git daemon༻ͷ ϑΝΠϧΛ࡞ git-daemon-export-ok
None
Step3 git daemonىಈ
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ڐՄ
ྃʘ(^o^)ʗ
ࢼͯ͠ΈΑ͏! $ 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
ಉ྅ͷPC͕ Macͷ߹
1. git daemonΛ͏ 2. sshͰؤுΔ
2. sshͰؤுΔ
Step1 ϩʔΧϧͷgitΛ ϕΞϦϙδτϦʹมߋ
ϩʔΧϧͷ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
ϩʔΧϧͷgitΛ ϕΞϦϙδτϦʹมߋ $cd /Users/Watanabe/ $mv php_blt_03/.git/ php_blt_03.git $rm -rf php_blt_03
$vi php_blt_03.git/config
ϩʔΧϧͷ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
Step2 ֎෦͔Β SSHଓग़དྷΔΑ͏ʹ ઃఆมߋ
None
None
ྃʘ(^o^)ʗ
ࢼͯ͠ΈΑ͏! $ 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
ಉ྅ͷPC͕ Windowsͷ߹
1. git daemonΛ͏ 2. sshͰؤுΔ
2. sshͰؤுΔ
Windowsʹ OpenSSHΛ Πϯετʔϧ͢Δ https://github.com/PowerShell/Win32-OpenSSH
ؤுΕͳ͔ͬͨ
͕࣌ؒͳ͍ͷͰ εΩοϓ ʘࢿྉͰͲ͏ͧʗ
్த݁Ռใࠂ
Step1 ϩʔΧϧͷgitΛ ϕΞϦϙδτϦʹมߋ
লུ
Step2 ֎෦͔Β SSHଓग़དྷΔΑ͏ʹ ઃఆมߋ
Windowsʹ SSH ͳ͍Ͱ͢
ͱ͍͏͜ͱͰ
Windowsʹ OpenSSHΛ Πϯετʔϧ͢Δ https://github.com/PowerShell/Win32-OpenSSH
Microsoft͕ OpenSSH Ҡ২த
GitHub͔Βμϯϩʔυ C:\Program Filesʹղౚ
ཧऀݖݶͰ Power Shell
SSHϙʔτΛۭ͚Δ New-NetFirewallRule -Protocol TCP -LocalPort 22 -Direction Inbound - Action
Allow -DisplayName SSH
SSHϗετΩʔ࡞ cd 'C:\Program Files\OpenSSH-Win32’ .\ssh-keygen.exe -A
None
ΠϯετʔϧεΫϦϓτ࣮ߦ cd 'C:\Program Files\OpenSSH-Win32’ .\install-sshlsa.ps1
Τϥʔ͕ग़ͨ߹
None
࣮ߦϙϦγʔΛ ऑΊΔ
None
Restricted ϩʔΧϧ:࣮ߦෆՄ ϦϞʔτ:࣮ߦෆՄ AllSigned ϩʔΧϧ:ূ໌ॻΛཁٻ ϦϞʔτ:ূ໌ॻΛཁٻ RemoteSigned ϩʔΧϧ:࣮ߦڐՄ ϦϞʔτ:ূ໌ॻΛཁٻ Unrestricted
ϩʔΧϧ:࣮ߦڐՄ ϦϞʔτ:֬ೝͷޙڐՄ
ऴΘͬͨΒͦ͏Ͷ
ऴΘͬͨΒͦ͏Ͷ
࠶ىಈ
αʔϏεొ
αʔϏεొɺىಈ cd 'C:\Program Files\OpenSSH-Win32’ .\sshd.exe install Start-Service sshd
ࢼ͠ʹܨ͍ͰΈΔ
ࢼ͠ʹܨ͍ͰΈΔ 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>
ŝŦᴸᴸᴸᴸ ƅ㱼ƅ)ᴸᴸᴸᴸ!!
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.
ͩΊͩͬͨ
͏গ͠Ͱ ߦ͚ͦ͏ͳؾ͕͢Δ
ʘ୭͔͓ئ͍͠·͢ʗ
݁
GitͳΒ େ ͳΜͱ͔ͳΔ
ସखஈΛ ֬อ͢Δ͜ͱ͕ େࣄ
ಉ྅ͷPCʹ Pushͱ͔ അࣛͳ͜ͱ ͯ͠ͳ͍Ͱ
GitHub͕མͪͨΒ BitBucketΛ͓͏
GitHub Enterprise BitBucket GitLab GitBucket Gitorious Gitolite Gitosis
GitHub Enterprise BitBucket GitLab GitBucket Gitorious Gitolite Gitosis Φεεϝ!→
None
ਓੜॳͷόζͬͨهࣄͰ͢:D http://rela1470.hatenablog.jp/entry/20140520
ྑ͍GitϥΠϑΛ!