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
170
20171001 逆求人イベント
mitubaex
0
220
YouをTubeする男
mitubaex
0
590
Other Decks in Technology
See All in Technology
Ask! NIKKEI RAG検索技術の深層
hotchpotch
13
2.8k
Developer Summit 2025 [14-D-1] Yuki Hattori
yuhattor
19
5.1k
バックエンドエンジニアのためのフロントエンド入門 #devsumiC
panda_program
16
6.5k
君も受託系GISエンジニアにならないか
sudataka
2
370
室長と気ままに学ぶマイクロソフトのビジネスアプリケーションとビジネスプロセス
ryoheig0405
0
320
スタートアップ1人目QAエンジニアが QAチームを立ち上げ、“個”からチーム、 そして“組織”に成長するまで / How to set up QA team at reiwatravel
mii3king
1
1.1k
【Developers Summit 2025】プロダクトエンジニアから学ぶ、 ユーザーにより高い価値を届ける技術
niwatakeru
2
890
Datadog APM におけるトレース収集の流れ及び Retention Filters のはなし / datadog-apm-trace-retention-filters
k6s4i53rx
0
320
PL900試験から学ぶ Power Platform 基礎知識講座
kumikeyy
0
110
まだ間に合う! エンジニアのための生成AIアプリ開発入門 on AWS
minorun365
PRO
4
580
明日からできる!技術的負債の返済を加速するための実践ガイド~『ホットペッパービューティー』の事例をもとに~
recruitengineers
PRO
3
100
依存関係があるコンポーネントは Barrel ファイルでまとめよう
azukiazusa1
3
530
Featured
See All Featured
A designer walks into a library…
pauljervisheath
205
24k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
400
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Code Reviewing Like a Champion
maltzj
521
39k
GraphQLとの向き合い方2022年版
quramy
44
13k
How STYLIGHT went responsive
nonsquared
98
5.3k
Into the Great Unknown - MozCon
thekraken
35
1.6k
Raft: Consensus for Rubyists
vanstee
137
6.8k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
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!!!