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.7k
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
力技で実現するHR Driven Provisioningとアクセス制御の自動化 / kyash-hr-driven-provisioning
rela1470
0
750
10分(25分)でつくる社内Webツール / howto-oidc-webpage
rela1470
0
110
リーグオブ情シス 第二回 / League of Infosys
rela1470
1
1.3k
Kyashでコーポレートエンジニアを初採用して7ヶ月が経ちましたがお元気ですか / ce-night-kyash
rela1470
4
3k
じこしょうかい2019 / rela1470-portfolio-2019
rela1470
0
320
255オクテットのドメインはツラみがある! / endless-work
rela1470
1
4.9k
ヤフーの1on1
rela1470
0
450
15分でわかる!WBMPビューアー実装から始めるPHPバイナリ超初心者入門 / php_wbmp
rela1470
1
2.2k
またブラウザアプリの時代が来る!?ORATTAが考えるこれからのゲーム開発戦略とは / oratta_webapp_pwa
rela1470
0
1.8k
Other Decks in Programming
See All in Programming
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
120
Security_for_introducing_eBPF
kentatada
0
110
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
180
DevFest Tokyo 2025 - Flutter のアプリアーキテクチャ現在地点
wasabeef
5
900
モバイルアプリにおける自動テストの導入戦略
ostk0069
0
110
Semantic Kernelのネイティブプラグインで知識拡張をしてみる
tomokusaba
0
180
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
930
複雑な仕様に立ち向かうアーキテクチャ
myohei
0
170
CSC305 Lecture 26
javiergs
PRO
0
140
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
210
Jakarta EE meets AI
ivargrimstad
0
240
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
130
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
510
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Designing for humans not robots
tammielis
250
25k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Writing Fast Ruby
sferik
628
61k
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ϥΠϑΛ!