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.6k
Gitハンズオン勉強会の資料
5/16 (水) の寺子屋ハンズオン勉強会の資料です
ミツバEX
May 15, 2018
Tweet
Share
More Decks by ミツバEX
See All by ミツバEX
ざっくりわかるDDD (戦術的のみ)
mitubaex
1
1.5k
20180903制作合宿
mitubaex
0
350
20160514 逆求人イベント
mitubaex
0
160
20171001 逆求人イベント
mitubaex
0
210
YouをTubeする男
mitubaex
0
560
Other Decks in Technology
See All in Technology
生成AIをより賢く エンジニアのための RAG入門 - Oracle AI Jam Session #20
kutsushitaneko
4
260
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
840
alecthomas/kong はいいぞ / kamakura.go#7
fujiwara3
1
300
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
150
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
270
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.3k
統計データで2024年の クラウド・インフラ動向を眺める
ysknsid25
2
850
KubeCon NA 2024 Recap: How to Move from Ingress to Gateway API with Minimal Hassle
ysakotch
0
210
watsonx.ai Dojo #5 ファインチューニングとInstructLAB
oniak3ibm
PRO
0
170
Storage Browser for Amazon S3
miu_crescent
1
220
バクラクのドキュメント解析技術と実データにおける課題 / layerx-ccc-winter-2024
shimacos
2
1.1k
ハイテク休憩
sat
PRO
2
160
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
95
17k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Scaling GitHub
holman
458
140k
How to train your dragon (web standard)
notwaldorf
88
5.7k
GitHub's CSS Performance
jonrohan
1030
460k
GraphQLとの向き合い方2022年版
quramy
44
13k
The Cult of Friendly URLs
andyhume
78
6.1k
Embracing the Ebb and Flow
colly
84
4.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
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!!!