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
2.7k
0
Share
Gitハンズオン勉強会の資料
5/16 (水) の寺子屋ハンズオン勉強会の資料です
ミツバEX
May 15, 2018
More Decks by ミツバEX
See All by ミツバEX
ざっくりわかるDDD (戦術的のみ)
mitubaex
1
1.7k
20180903制作合宿
mitubaex
0
400
20160514 逆求人イベント
mitubaex
0
200
20171001 逆求人イベント
mitubaex
0
240
YouをTubeする男
mitubaex
0
760
Other Decks in Technology
See All in Technology
地元にいないローカルオーガナイザーの立ち回り
uvb_76
1
470
Amazon Bedrock AgentCore ワークショップ JAWS UG TOHOKU / amazon-bedrock-agentcore-workshop-jawsug-tohoku-2026
gawa
5
160
AI-DLCを活用した高品質・安全なAI駆動開発実践 / AI Driven Development with AI-DLC
yoshidashingo
0
130
AI Engineering Summit Tokyo 2026 AIの前に、やることがある 〜医療データ企業の4フェーズ〜
dtaniwaki
0
1.8k
Unlocking the Apps
pimterry
0
220
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
6
1.5k
「嘘をつくテスト」の失敗例から学ぶ 良いテストコード #frontend_phpcon_do
asumikam
0
230
ポケモンの型をTypeScriptの型システムで表現してみた
subroh0508
0
310
2026.06.13_AI時代に事業会社が「SIer出身エンジニア」を求める理由 / Why Businesses Seek Engineers with a System Integrator Background in the AI Era
jumtech
0
310
形式手法特論:公平性制約の位相的特徴づけ #kernelvm / Kernel VM Study Kansai 12th
ytaka23
1
740
Claude code Orchestra
ozakiomumkj
3
950
AI駆動開発が変える、大規模開発の前提 ーHuman in the Loop から Human on the Loop へ / AIE2026
visional_engineering_and_design
5
3.7k
Featured
See All Featured
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Writing Fast Ruby
sferik
630
63k
Bash Introduction
62gerente
615
210k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
190
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Invisible Side of Design
smashingmag
302
52k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3.3k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Believing is Seeing
oripsolob
1
140
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!!!