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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
6k
Ruby
daic_h
0
120
Other Decks in Programming
See All in Programming
Contextとはなにか
chiroruxx
1
320
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
550
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
2k
「なぜそう決めたのか」を残し続ける仕組み ― Notion AI カスタムエージェント × Slack連携による設計判断の自動記録 - NIKKEI Tech Talk #47
niftycorp
PRO
0
170
dRuby over BLE
makicamel
2
340
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
260
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
13
4.2k
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.4k
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
260
JavaDoc 再入門
nagise
1
340
Oxlintのカスタムルールの現況
syumai
6
1.1k
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
780
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.1k
BBQ
matthewcrist
89
10k
Paper Plane (Part 1)
katiecoart
PRO
0
9k
Optimising Largest Contentful Paint
csswizardry
37
3.7k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Amusing Abliteration
ianozsvald
1
200
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
How to Think Like a Performance Engineer
csswizardry
28
2.6k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Automating Front-end Workflow
addyosmani
1370
210k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
210
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