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 workshop
Search
Daichi Hirata
October 03, 2012
Programming
9.6k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git workshop
Nubee Tokyo Oct. 3, 2012
Daichi Hirata
October 03, 2012
More Decks by Daichi Hirata
See All by Daichi Hirata
GCPのネットワークでハマった話
daic_h
7
4.1k
ElasticBeatsを導入してみた話/Go Conference 2016 Spring
daic_h
3
6.1k
Ruby
daic_h
0
120
Other Decks in Programming
See All in Programming
フィードバックで育てるAI開発
kotaminato
1
100
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
200
どこまでゆるくて許されるのか
tk3fftk
0
400
Developing with AI Agents — Codex, Claude Code & Cowork Practical Guide
x5gtrn
PRO
0
1.3k
Dataformのリポジトリを立ち上げるときにまずやること / dataform-day0-2026
snhryt
0
210
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
290
AIを活用したE2Eテスト実装効率化のあゆみ / ebisu-mobile-14-kotetu
kotetuco
0
160
AIエージェントで 変わるAndroid開発環境
takahirom
1
440
OS アップデート対応の取り組み方がもっと共有されてほしい
andpad
0
110
Snowflake Summitでの新機能 CoCo / CoWork / snowflake-summit-2026-overall-what-new-coco
tatsuhiro
1
210
Skillsは効率化、Agentsは"自分の拡張"——Builder時代のエージェント編成(CC Night 2026)
wemra
1
200
分散システム、なんですぐ死んでしまうん?耐障害性を高めたいあなたのためのレジリエンスパターン入門
mshibuya
7
4.2k
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.7k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
440
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
240
How GitHub (no longer) Works
holman
316
150k
How to Talk to Developers About Accessibility
jct
2
280
Navigating Weather and Climate Data
rabernat
0
280
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
340
Designing for Timeless Needs
cassininazir
1
270
Scaling GitHub
holman
464
140k
KATA
mclloyd
PRO
35
15k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
180
Transcript
WorkShop server-side engineer Daichi Hirata
Purpose (JUʹରͯ͠ͷڞ௨ೝࣝ $PNNPOVOEFSTUBOEJOHGPS(JU ϊϋͷڞ༗ 4IBSJOHPGLOPXMFEHF
Agenda (JUͷجૅࣝ #BTJDLOPXMFEHF 5JQT
Basic knowledge
SVN Remote Repository Working Tree Commit / Checkout
Repository Working Tree .git internal Index Remote Repository stash Pull
/ Push Git
Repository Working Tree Index Component
Repository Working Tree Index git checkout Component ͍ͭͰϦϙδτϦ͔ΒҎલͷঢ়ଶͷ ϫʔΩϯάπϦʔΛνΣοΫΞτՄೳ :PVDBODIFDLPVUUIFXPSLJOHUSFFGSPNUIFSFQPTJUPSZ
BUBOZUJNFPGUIFQSFWJPVTTUBUF
Repository Working Tree Index Component git checkout git add ϫʔΩϯάπϦʔͷมߋ͕Πϯ
σοΫεొ͞ΕΔ $IBOHFUIFXPSLJOHUSFFUPUIFJOEFYJT SFHJTUFSFE
Repository Working Tree Index Component git checkout git add ΠϯσοΫεͷมߋ͕ϦϙδτϦ
ίϛοτ͞ΕΔ *OEFYDIBOHFTBSFDPNNJUUFEUPUIF SFQPTJUPSZ git commit
Repository Working Tree Index Component stash Ұ࣌తͳมߋίϛοτͰ͖ͳ͍ มߋΛୀආͤ͞Δ &WBDVBUFBOEDPNNJUDIBOHFTUIBUDBO OPUCFBUFNQPSBSZDIBOHF
git stash
Commit ϑΝΠϧπϦʔ 'JMFUSFF Ճใ "EEJUJPOBMJOGPSNBUJPO લͷίϛοτ -BTUDPNNJU
Commit ϑΝΠϧπϦʔ 'JMFUSFF Ճใ "EEJUJPOBMJOGPSNBUJPO લͷίϛοτ -BTUDPNNJU
Commit ϑΝΠϧπϦʔ 'JMFUSFF Ճใ "EEJUJPOBMJOGPSNBUJPO લͷίϛοτ -BTUDPNNJU ͲΕ͔̍ͭͰҟͳΕಉ͡ϑΝΠ ϧɺಉ͡༰ͰҟͳΔίϛοτ $PNNJUUIFTBNFpMFXJUIEJGGFSFOU
FWFOXJUIUIFTBNFDPOUFOUCVU EJGGFSFOUJGBOZPOF
Commit ϑΝΠϧπϦʔ 'JMFUSFF Ճใ "EEJUJPOBMJOGPSNBUJPO લͷίϛοτ -BTUDPNNJU
ҙͷίϛοτ͔Β࠷ॳͷίϛοτ JOJUJBMDPNNJU ͔Βͦͷίϛοτʹ ࢸΔશͯͷཤྺ͕औಘͰ͖Δ Commit )JTUPSZBMMUIFXBZUPDPNNJUGSPNUIF JOJUJBMDPNNJU DBOCFPCUBJOFEGSPNUIF pSTUDPNNJUDPNNJUBOZ
͋Δίϛοτ ͦͷϒϥϯνͷ࠷৽ͷί ϛοτ ʹࢸΔཤྺͱকདྷ Branch )JTUPSZBOEGVUVSFMFBEJOHUPUIF NPTU SFDFOUDPNNJUPOUIBUCSBODI DPNNJU UIFSF
Branch
C0 C1 C2 master hotfix Merge
C0 C1 C2 C3 master hotfix Merge
C0 C1 C2 C3 master hotfix Merge
C0 C1 C2 C3 master hotfix Fast foward Merge
C0 C1 C2 C3 master #11 C4 Merge
C0 C1 C2 C3 master #11 C4 Merge
C0 C1 C2 C3 master #11 C4 Merge
C0 C1 C2 C3 master #11 C4 Merge
C0 C1 C2 C3 master #11 C4 C5 Merge
C0 C1 C2 C3 master #11 C4 Rebase
C0 C1 C2 C3 master #11 C4 Rebase
C0 C1 C2 C3’ master #11 C4’ master cherry-pick Rebase
C0 C1 C4 C2 C3 C5 C8 C6 C7 #12
master #13 Rebase
C0 C1 C4 C2 C3 C5 C8 C6 C7 #12
master #13 Rebase
C0 C1 C4 C2 C3 C5 C8 C6 C7 #12
master #13 $ git rebase --onto master #12 #13 Rebase
Tips
$git stash $git bisect $git commit --amend $git rebase -i
HEAD~x $git cherry-pick $git reflog tips1: Useful Commands
$git stash drop stash@{x} $git stash apply [stash@{x}] $git stash
pop [stash@{x}] $git stash list $git stash [save message] $ git stash $git stash clear
$git stash drop stash@{x} $git stash apply [stash@{x}] $git stash
pop [stash@{x}] $git stash list $git stash [save message] $ git stash
$git stash drop stash@{x} $git stash apply [stash@{x}] $git stash
pop [stash@{x}] $git stash list $git stash [save message] $ git stash $git stash clear
$git reflog $git cherry-pick $git rebase -i HEAD~x $git bisect
$git stash tips1: Useful Commands $git commit --amend
$git bisect start $git bisect bad $git bisect good rev
$git bisect next $git bisect bad/good $git bisect reset $git bisect run <test_file> $git bisect
$git reflog $git cherry-pick $git rebase -i HEAD~x $git commit
--amend $git stash tips1: Useful Commands $git bisect
$git reflog $git cherry-pick $git rebase -i HEAD~x $git commit
--amend $git stash tips1: Useful Commands $git bisect
$git reflog $git cherry-pick $git rebase -i HEAD~x $git commit
--amend $git stash tips1: Useful Commands $git bisect
$git reflog $git cherry-pick $git rebase -i HEAD~x $git commit
--amend $git stash tips1: Useful Commands $git bisect
tips2: Setting [color] diff = auto status = auto branch
= auto ui = auto [alias] co = checkout st = status -sb wd = diff --word-diff tlog = log --graph --pretty=oneline --decorate --date=short --abbrev-commit --branches hist = log --pretty=format:\"%C(yellow)%h %C(White)%ad | %C(White)%s%d %C(Red)[%an]\" --graph --date=short [merge] tool = vimdiff [core] excludesfile = ~/.gitignore
tips2: Setting - gst
tips2: Setting - ignore-changes
tips2: Setting - prompt