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
360
20160514 逆求人イベント
mitubaex
0
180
20171001 逆求人イベント
mitubaex
0
230
YouをTubeする男
mitubaex
0
640
Other Decks in Technology
See All in Technology
SalesforceArchitectGroupOsaka#20_CNX'25_Report
atomica7sei
0
200
生成AIで小説を書くためにプロンプトの制約や原則について学ぶ / prompt-engineering-for-ai-fiction
nwiizo
4
2.5k
Javaで作る RAGを活用した Q&Aアプリケーション
recruitengineers
PRO
1
120
急成長を支える基盤作り〜地道な改善からコツコツと〜 #cre_meetup
stefafafan
0
130
Leveraging Open-Source Tools for Creating 3D Tiles in the Urban Environment
simboss
PRO
0
100
Understanding_Thread_Tuning_for_Inference_Servers_of_Deep_Models.pdf
lycorptech_jp
PRO
0
140
Delegating the chores of authenticating users to Keycloak
ahus1
0
130
製造業からパッケージ製品まで、あらゆる領域をカバー!生成AIを利用したテストシナリオ生成 / 20250627 Suguru Ishii
shift_evolve
PRO
1
140
Navigation3でViewModelにデータを渡す方法
mikanichinose
0
220
Github Copilot エージェントモードで試してみた
ochtum
0
110
【PHPカンファレンス 2025】PHPを愛するひとに伝えたい PHPとキャリアの話
tenshoku_draft
0
120
プロダクトエンジニアリング組織への歩み、その現在地 / Our journey to becoming a product engineering organization
hiro_torii
0
130
Featured
See All Featured
Practical Orchestrator
shlominoach
188
11k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.5k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Rebuilding a faster, lazier Slack
samanthasiow
82
9.1k
Unsuck your backbone
ammeep
671
58k
Code Review Best Practice
trishagee
68
18k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
24k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.8k
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!!!