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
98
リーグオブ情シス 第二回 / League of Infosys
rela1470
1
1.3k
Kyashでコーポレートエンジニアを初採用して7ヶ月が経ちましたがお元気ですか / ce-night-kyash
rela1470
4
2.9k
じこしょうかい2019 / rela1470-portfolio-2019
rela1470
0
300
255オクテットのドメインはツラみがある! / endless-work
rela1470
1
4.9k
ヤフーの1on1
rela1470
0
440
15分でわかる!WBMPビューアー実装から始めるPHPバイナリ超初心者入門 / php_wbmp
rela1470
1
2.2k
またブラウザアプリの時代が来る!?ORATTAが考えるこれからのゲーム開発戦略とは / oratta_webapp_pwa
rela1470
0
1.7k
API仕様書ってどう運用したらいいの? / api_doc
rela1470
0
1.2k
Other Decks in Programming
See All in Programming
XP2024 っていう国際会議に行ってきたよの記
bonotake
4
230
GitHub Copilot Workspace で我々のアプリ開発がどう変わるのか?
shuyakinjo
0
940
[PHPカンファレンス沖縄2024]「無理なくできるだけ安全に」テストもないレガシーコードをリファクタリングするテクニック
ikezoemakoto
3
130
メルカリ ハロ アプリの技術スタック
atsumo
2
800
pytest プラグインを開発して DRY に自動テストを書こう
inuatsu
2
260
複数プロダクトの技術改善・クラウド移行に向き合うチームのフレキシブルなペア・モブプログラミングの実践 / Flexible Pair Programming And Mob Programming
honyanya
0
230
tsconfig.jsonの最近の新機能 ファイルパス編
uhyo
6
1.7k
ACES Meet におけるリリース作業改善の取り組み
fukucheee
0
130
5年分のツケを一気に払った話
soogie
3
1.3k
自分だけの世界を創るクリエイティブコーディング / Creative Coding: Creating Your Own World
chobishiba
2
1.1k
MLOps in Mercari Group’s Trust and Safety ML Team
cjhj
1
120
Go製CLIツールGatling Commanderによる負荷試験実施の自動化
okmtz
3
700
Featured
See All Featured
The Language of Interfaces
destraynor
154
24k
How to Ace a Technical Interview
jacobian
275
23k
Building an army of robots
kneath
302
42k
How to train your dragon (web standard)
notwaldorf
87
5.6k
How STYLIGHT went responsive
nonsquared
95
5.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
39
2.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
BBQ
matthewcrist
85
9.2k
A Philosophy of Restraint
colly
203
16k
Building Adaptive Systems
keathley
38
2.2k
Fireside Chat
paigeccino
32
3k
The Mythical Team-Month
searls
218
43k
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ϥΠϑΛ!