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
120
10分(25分)でつくる社内Webツール / howto-oidc-webpage
rela1470
0
110
リーグオブ情シス 第二回 / 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
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
EventSourcingの理想と現実
wenas
6
2.3k
Arm移行タイムアタック
qnighy
0
320
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
100
CSC509 Lecture 11
javiergs
PRO
0
180
subpath importsで始めるモック生活
10tera
0
300
Macとオーディオ再生 2024/11/02
yusukeito
0
370
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
600
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.1k
Outline View in SwiftUI
1024jp
1
330
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
Jakarta EE meets AI
ivargrimstad
0
620
Jakarta EE meets AI
ivargrimstad
0
550
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Code Review Best Practice
trishagee
64
17k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
We Have a Design System, Now What?
morganepeng
50
7.2k
Ruby is Unlike a Banana
tanoku
97
11k
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ϥΠϑΛ!