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
Try Git ハンズオン
Search
Matsuo (TAM)
March 02, 2016
Technology
0
220
Try Git ハンズオン
Matsuo (TAM)
March 02, 2016
Tweet
Share
More Decks by Matsuo (TAM)
See All by Matsuo (TAM)
Yeoman で gulp の環境を さらっと作る
tammatsuo
1
890
Other Decks in Technology
See All in Technology
いまからでも遅くないコンテナ座学
nomu
0
160
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
200
20241218_今年はSLI/SLOの導入を頑張ってました!
zepprix
0
210
10個のフィルタをAXI4-Streamでつなげてみた
marsee101
0
180
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
250
なぜCodeceptJSを選んだか
goataka
0
190
組織に自動テストを書く文化を根付かせる戦略(2024冬版) / Building Automated Test Culture 2024 Winter Edition
twada
PRO
21
6.2k
ネットワーク可視化の世界
likr
7
5.1k
最近のSfM手法まとめ - COLMAP / GLOMAPを中心に -
kwchrk
8
1.5k
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
330
2024年にチャレンジしたことを振り返るぞ
mitchan
0
160
【re:Invent 2024 アプデ】 Prompt Routing の紹介
champ
1
280
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.4k
A designer walks into a library…
pauljervisheath
205
24k
Being A Developer After 40
akosma
89
590k
Navigating Team Friction
lara
183
15k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
GitHub's CSS Performance
jonrohan
1031
460k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Faster Mobile Websites
deanohume
305
30k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Transcript
KFUG ϋϯζΦϯ GitΛ࢝ΊͯΈΑ͏ʂ (Git + SourceTree ϋϯζΦϯ) 1 sponsored by
2 ✱ ࠓ͔Βͪΐͬͱ͠ΌΔͷͰɺ ͦͷؒʹҎԼΛࢀߟʹ ✱ http://tinyurl.com/git160305 ✱ SourceTree ͷΠϯετʔϧΛɺ ·ͩͷํ͓͍͍ͬͯͯͩ͘͞
͡Ίʹ
TAM + tambourine inc. ʹΑΔ εϙϯαʔυɾϋϯζΦϯͰ͢ 3
4 ✱ גࣜձࣾTAM, גࣜձࣾλϯόϦϯ ✱ ύʔτφʔܕσδλϧϓϩμΫγϣϯ ✱ डୗͷWeb੍࡞͕ओͳ͓ࣄɺ େख͔Βͷ͚Ҋ͕݅΄ͱΜͲ ✱
େࡕ / ౦ژ / γϯΨϙʔϧ Ͱ120ਓ ✱ Git / Gulp / Angular / PHP / Laravel / Slack / Heroku / AWS / monaca etc. ձࣾհ
5 TAM Coworking ✱ ؔϑϩϯτΤϯυUG ษڧձ, ͘͘ձ ຖ݄ͬͯ·͢ (࣍ճ3/21ॕ) ✱
http://www.tam-tam.co.jp/coworking/
6 ✱ ϑϩϯτΤϯυɾόοΫΤϯυΤϯδχΞ ืूதʂ (JavaScript / PHP ͳͲ) ✱ σβΠφʔग़ˠϑϩϯτɾόοΫΤϯυ
྆ํ͍ͬͯΔਓͱ͔ɺόοΫΤϯυˠ σΟϨΫλʔసͱ͔ɻ৭ʑܦݧͰ͖·͢ ✱ ϧʔϧͷগͳ͍ɺۃʹࣗ༝ͳձࣾͰ͢ ✱ “Wantedly TAM” Ͱݕࡧ͔ɺελοϑ·Ͱ ٻਓืू
7 એ͓ΘΓ Git + SourceTree ϋϯζΦϯ ͡Ί·͢
8 ✱ લड़ͷϖʔδݟΒΕ͍ͯ·͔͢ʁ http://tinyurl.com/git160305 ✱ SourceTree ͷΠϯετʔϧ OK? Mac ver.
2.1 / Windows ver. 1.6 ର ४උOK?
9 ✱ όʔδϣϯཧπʔϧͷ໊લ ✱ ཤྺɾϩάΛ࣮֬ʹ͢ ✱ ୭͕ɺͲ͜Λɺ͍ͭɺͲ͏มߋ͔͕ͨ͠ ͔Δ (ߦ୯ҐͰʂ) ✱
ઌฦΓͳͲ͕ى͖ʹ͘͘ɺ҆৺ & ޮత Gitͬͯ??
10 ✱ Git ΛϚεͰૢ࡞Ͱ͖Δ GUI ✱ ϩάࠩΛɺࢹ֮తʹ؆୯ʹ֬ೝͰ͖Δ ✱ Mac Ͱ
Windows Ͱ͑Δ & ແྉ SourceTreeͬͯ??
11 GitϦϙδτϦͷ࡞ ϦϙδτϦͱGit ͷ σʔλΛೖΕΔݿͷ͜ͱɻ ʮϑΝΠϧʯˠʮ৽ن࡞ʯ อଘઌϑΥϧμΛࢦఆ
12 αϯϓϧίʔυΛindex.html ͱͯ͠อଘ
13 ίϛοτ (ݱࡏͷঢ়ଶΛه)
14 ✱ index.html ͷޡࣈΛ֤ࣗฤू͍ͯͩ͘͠͞ ✱ ίϛοτ(ฤूཤྺΛه)͍͖ͯ͠·͢ ✱ ࠩΛࢹ ✱ εςʔδϯά
✱ ίϛοτ ✱ ίϛοτϩάΛ֬ೝ ฤूͯ͠ɺίϛοτ ͋ͳͨͷ1$ ϩʔΧϧϦϙδτϦʹ มߋͨ͠ϑΝΠϧΛొ
15 master ͜ΕΛ܁Γฦ͢ ίϛοτ͕ͲΜͲΜ࿈ͳ͍͖ͬͯ·͢ جຊ͜ͷ܁Γฦ͠Ͱ͢
16 ϒϥϯν ຊͷۄͰ͢
17 master feature develop ϒϥϯνͱ Git ͷίϛοτΛࢬ͔Εͤͨ͞ͷ ֤ϒϥϯνશʹผঢ়ଶͰɺޓ͍ʹӨڹ͞Εͳ͍
18 master ϒϥϯν͕ͳ͍ͱ ৽ػೳΛՃ͍ͯ͠Δ్தʹɺ ۓٸͷमਖ਼͕ඞཁʹͳͬͨΒʁ ͦͷۓٸमਖ਼͚ͩΛΞοϓ͔ͨͬͨ͠Βʁ ۓٸमਖ਼ ৽ػೳՃ ৽ػೳՃ
19 master ϒϥϯν͕ͳ͍ͱ ۓٸमਖ਼ ৽ػೳՃ ৽ػೳՃ ࣮ Git ͷ͏·Έগͳ͍
20 master ϒϥϯν͕͋Δͱ ྫ) “master” ϒϥϯνɺຊ൪αʔόͷσʔλͱಉ͡ (Ϛελʔσʔλ) ୈ1ϑΣʔε͕ެ։ྃ͠·ͨ͠ɺ ୈ2ϑΣʔζʹ͚ͨػೳՃΛ։࢝͠·͢ɻ
21 master feature ϒϥϯν͕͋Δͱ ػೳՃͷͨΊʹɺ”feature” ͱ͍͏ϒϥϯνΛ ࡞Γɺ͜ͷϒϥϯνͰ࡞ۀΛ։࢝͠·͢
22 master fix feature ϒϥϯν͕͋Δͱ ࡞ۀ్தɺٸᬎɺۓٸमਖ਼͕ඞཁʹͳΓ·ͨ͠ʂ master ͔Βɺ৽͘͠ “fix”
ϒϥϯνΛ࡞͠·͢
23 master fix feature ϒϥϯν͕͋Δͱ fix ϒϥϯνͰमਖ਼Λߦ͍ɺmaster ʹ౷߹ɾެ։͠ ·͢ɻ(feature
ϒϥϯνͷ༰ӨڹΛड͚·ͤΜ)
24 master fix feature ϒϥϯν͕͋Δͱ feature ϒϥϯνͰɺػೳՃͷ࡞ۀʹΓ·͢
25 master fix feature ϒϥϯν͕͋Δͱ ػೳՃ͕ྃͨ͠Βɺmaster ʹ౷߹͠ɺ ެ։͠·͢ɻ
26 ✱ Ϛʔδ: ϒϥϯνؒͷσʔλΛ౷߹͢Δ͜ͱ ✱ ࠩɺجຊతʹࣗಈͰө͞ΕΔ (ߦ୯Ґ) Ϛʔδͱ master fix
feature 26
27 ϒϥϯνར༻Πϝʔδ 1. ৽ϝχϡʔͷՃ࡞ۀΛ͠·͢ 2. ࡞ۀ్தʹɺۓٸͷՁ֨मਖ਼͕ൃੜʂ 3. ͬ͘͞ͱۓٸରԠͨ͠ͷͪ 4. ৽ϝχϡʔͷՃ࡞ۀʹΓ·͢
ͬͯΈΑ͏
28 1. ৽ϝχϡʔ༻ͷϒϥϯνΛ࡞Δ 2. <tr> ΛՃɺ৽ϝχϡʔΛૠೖɺ ͨͱ͑Ձ֨ະఆͱͯ͠ίϛοτ 3. master ͔Βۓٸमਖ਼༻ϒϥϯνΛ࡞Δ
4. ۓٸमਖ਼ͯ͠ίϛοτ 5. master ʹϚʔδ 6. ৽ϝχϡʔ༻ϒϥϯνʹͬͯɺ࡞ۀܧଓ ͬͯΈΑ͏
29 master fix-typo add-menu ϒϥϯν͓͞Β͍ ࡞ۀ͝ͱʹϒϥϯν࡞ → ͨ͠ΒmasterʹϚʔδ ଞͷमਖ਼ͱͬͪ͝ΌʹͳΒͣɺεϜʔζʹ࡞ۀͰ͖Δ
30 ✱ αϧͰΘ͔ΔGitೖ Git ΛΘ͔Γ͘͢ਤղ (ψʔϥϘ͞Μ࡞) http://www.backlog.jp/git-guide/ ✱ Git-it ίϚϯυϥΠϯ(ࠇ͍ը໘)Ͱ
Git Λ֮͑ΔͨΊͷڭࡐ (GitHubͷਓ࡞) https://github.com/jlord/git-it ͬͱษڧ͍ͨ͠ͳΒ
31 ✱ ͋Γ͕ͱ͏͍͟͝·ͨ͠ ✱ Ҿ͖ଓ͖ TAM / λϯόϦϯϒʔεΛ ग़͍ͯ͠·͢ɺͥͻཱ͓ͪدΓ͍ͩ͘͞ ✱
ٻਓ Wantedly TAM or Wantedly λϯόϦϯ Ͱݕࡧ ͓ΘΓ