Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Git workshop
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
130
Other Decks in Programming
See All in Programming
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
33
15k
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
120
すこし踏み込む CancellationToken
htkym
2
1.6k
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
330
Verilogで学ぶCPU自作入門.pdf
uyuki234
8
4k
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
140
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
530
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
530
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
190
Workers Cache を知る
syumai
0
320
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.4k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
430
Featured
See All Featured
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
290
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
450
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
270
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
300
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
450
Mobile First: as difficult as doing things right
swwweet
225
10k
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