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
Gitハンズオン勉強会の資料
Search
ミツバEX
May 15, 2018
Technology
0
2.7k
Gitハンズオン勉強会の資料
5/16 (水) の寺子屋ハンズオン勉強会の資料です
ミツバEX
May 15, 2018
Tweet
Share
More Decks by ミツバEX
See All by ミツバEX
ざっくりわかるDDD (戦術的のみ)
mitubaex
1
1.6k
20180903制作合宿
mitubaex
0
370
20160514 逆求人イベント
mitubaex
0
180
20171001 逆求人イベント
mitubaex
0
230
YouをTubeする男
mitubaex
0
670
Other Decks in Technology
See All in Technology
開発者を支える Internal Developer Portal のイマとコレカラ / To-day and To-morrow of Internal Developer Portals: Supporting Developers
aoto
PRO
1
410
Automating Web Accessibility Testing with AI Agents
maminami373
0
1.1k
Flutterでキャッチしないエラーはどこに行く
taiju59
0
220
Snowflakeの生成AI機能を活用したデータ分析アプリの作成 〜Cortex AnalystとCortex Searchの活用とStreamlitアプリでの利用〜
nayuts
1
420
AWSで始める実践Dagster入門
kitagawaz
1
520
企業の生成AIガバナンスにおけるエージェントとセキュリティ
lycorptech_jp
PRO
2
110
サンドボックス技術でAI利活用を促進する
koh_naga
0
190
AWSで推進するデータマネジメント
kawanago
1
1.2k
[RSJ25] Feasible RAG: Hierarchical Multimodal Retrieval with Feasibility-Aware Embodied Memory for Mobile Manipulation
keio_smilab
PRO
0
120
おやつは300円まで!の最適化を模索してみた
techtekt
PRO
0
290
なぜスクラムはこうなったのか?歴史が教えてくれたこと/Shall we explore the roots of Scrum
sanogemaru
5
1.5k
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
8.7k
Featured
See All Featured
Being A Developer After 40
akosma
90
590k
Gamification - CAS2011
davidbonilla
81
5.4k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
A better future with KSS
kneath
239
17k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
580
Designing for Performance
lara
610
69k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Transcript
Please don’t write source code changes to paper!!! Please use
Git!!! ϛπό
ιʔείʔυͷมߋΛࢴ ʹॻ͔ͳ͍Ͱʂ GitΛͬͯʂ ϛπό
͓લ୭Αʁ
ϛπό (M2) • @EX46900521
GitΠϯετʔϧ ͞Εͯ·͔͢ʁ
Git
ࠓͷΰʔϧ • GitͷجૅతͳίϚϯυͷ͍ํΛϚελʔ͢ Δ • GitHubΛͬͯݸਓ։ൃΛָ͘͠Ճͤ͞Δ
ࠓ͞ͳ͍͜ͱ • Gitͷਂ͍ࣝ (νʔϜ։ൃʹඞཁͳྺ࢙վม ίϯϑϦΫτͷʣ • ͪΐͬͱྺ࢙վมͷ͕ग़ͯ͘ΔΑ • GitHub-flow, Git-flowͳͲͷ։ൃϑϩʔ
എܠ
GitͷجૅతͳίϚϯυ
ૣ͍͖ͬͯ
git init
git status
git add
ࠓىͬͨ͜͜ͱ Working tree Stage area Local repo README.md
ࠓىͬͨ͜͜ͱ Working tree Stage area Local repo README.md
git commit
ࠓىͬͨ͜͜ͱ Working tree Stage area Local repo README.md
ࠓىͬͨ͜͜ͱ Working tree Stage area Local repo README.md
ϑΝΠϧΛॻ͖͑ͯΈΔ
ه
git diff
git commit
͜ΕͰେମͰ͖Δ͚Ͳɾɾɾ
ϒϥϯν
ϒϥϯν • βੈքઢͷΑ͏ͳͷ αੈքઢ βੈքઢ ΕΔΑʂ
ϒϥϯνͷྑ͞Έ
ϒϥϯνͷྑ͞Έ • ϒϥϯν͝ͱʹมߋΛͰ͖Δ • มߋΛऔΓࠐΉ͔Ͳ͏͔Λϒϥϯν͝ͱͰߦ ͑Δ • τϐοΫϒϥϯν
͍͖ͬͦͬͯ͘͞
git branch, checkout
ه
git commit
git checkout
git merge
git log ——graph
Ϛʔδ͞ΕͯΔ
લͷ·ͱΊ • git add, git commit ͰมߋΛLocal repo • git
diff, git status Ͱࠓͷঢ়ଶΛ֬ೝ • git branch, git checkout ͰϒϥϯνΛૢ࡞ • git merge ͰϒϥϯνͷมߋΛऔΓࠐΉ
GitHubΛ͍ͬͯ͜͏
github.com
ϦϙδτϦ࡞
GitHubͷઃఆ
git config
git remote
git push
ࠓىͬͨ͜͜ͱ Working tree Stage area Local repo README.md
ࠓىͬͨ͜͜ͱ Working tree Stage area Local repo README.md
git pull
GitHub͍Ζ͍Ζ
GitHubͷػೳ • Issue • Pull request • … etc
Issue
Issue
Pull request
Pull request
Ҿ༻ɿhttps://github.com/ angular/angular
Pull requestΛͭ͘Ζ͏
Issue
git push ·Ͱ
git push ·Ͱ
͜Μͳ͕ͭͰͯ͘Δ
Pull request࡞Εͨ
Pull requestΛϚʔδ ↑͜͜
git pull
ޙͷ·ͱΊ • git push ͰϦϞʔτมߋΛө • git pull ͰϦϞʔτͷมߋΛ࣋ͬͯ͘Δ •
Issue, Pull request Λ࡞ͬͯ։ൃ͠Α͏
Λղ͍ͯΈΑ͏
git challenge • mixi-git-challenge ༷ͷΛ͓आΓ͠·͢ • https://github.com/mixi-git-challenge • ϦϙδτϦΛforkͯ͠ɼࣗͷϦϙδτϦͱ͠ ͯऔΓࠐΜͩޙɼ࡞ۀΛ࢝Ί·͠ΐ͏
• ผʹ͠ͳ͍͍͔ͯ͘
Fork ͜͜ˣ
Fork ޙ
git clone
git challenge • Easy • https://github.com/mixi-git-challenge/git- challenge-is-order-an-adding • ώϯτ •
ls -a
git challenge • Normal • https://github.com/mixi-git-challenge/git- challenge-minesweeper • ώϯτ •
git show <Revision numbers>:<target file> • git rebase
·ͱΊ • gitίϚϯυͷઆ໌Λߦ͍ɼGitHubͷجຊతͳ ͍ํΛߨश͠·ͨ͠ɽ • มߋ༰ΛஞҰࢴʹϝϞ͍ͬͯ͘ͷΊͯɼ Let’s use Git. •
Congratulations!!!