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
110
10分(25分)でつくる社内Webツール / howto-oidc-webpage
rela1470
0
100
リーグオブ情シス 第二回 / League of Infosys
rela1470
1
1.3k
Kyashでコーポレートエンジニアを初採用して7ヶ月が経ちましたがお元気ですか / ce-night-kyash
rela1470
4
2.9k
じこしょうかい2019 / rela1470-portfolio-2019
rela1470
0
310
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
Other Decks in Programming
See All in Programming
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
220
Progressive Web Apps für Desktop und Mobile mit Angular (Hands-on)
christianliebel
PRO
0
110
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
23k
生成 AI を活用した toitta 切片分類機能の裏側 / Inside toitta's AI-Based Factoid Clustering
pokutuna
0
660
役立つログに取り組もう
irof
27
8.9k
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
120
Server Driven Compose With Firebase
skydoves
0
420
From Subtype Polymorphism To Typeclass-based Ad hoc Polymorphism- An Example
philipschwarz
PRO
0
170
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
10
1.1k
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
1k
Synchronizationを支える技術
s_shimotori
1
150
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
3
810
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
167
49k
The Power of CSS Pseudo Elements
geoffreycrofte
72
5.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Adopting Sorbet at Scale
ufuk
73
9k
Code Reviewing Like a Champion
maltzj
519
39k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
328
21k
It's Worth the Effort
3n
183
27k
Building Adaptive Systems
keathley
38
2.2k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Navigating Team Friction
lara
183
14k
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ϥΠϑΛ!