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 & Gerrit
Search
dgkim84
July 18, 2012
Technology
130
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git & Gerrit
Git & Gerrit
dgkim84
July 18, 2012
More Decks by dgkim84
See All by dgkim84
Logical clocks
dgkim84
1
61
HCatalog & Templeton
dgkim84
2
390
Other Decks in Technology
See All in Technology
同じWAFが、攻撃の“形”は弾く── 正当な“形”の不正は通す
kuroneko13
0
250
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
280
Digitization部 紹介資料
sansan33
PRO
2
7.7k
20260807_第6回_関東kaggler会LT_claw系bot xangiと始める、"寂しくない" kaggle
sugupoko
0
370
平文パスワードはログに“残り” ── 肝心の侵入は“痕跡すら残らない”
kuroneko13
0
110
AIに狂うスタートアップが、あえて「人との協働」に全振りした新卒エンジニア研修 / New Graduate Engineer Training at a Startup Accelerating AI Adoption
ohnoeight
0
160
MulticaとPi Coding Agentで、小規模OSSを30本同時運用した流れ
eiei114
0
130
DDDのエッセンスを取り入れたAIでの開発
ak2ie
0
160
コネクションをピン留めさせずに SELECTクエリのタイムアウトを設定した話
codmoninc
0
170
SmartHR Engineering Team Deck
smarthr
1
3k
AIに持続⼒を与える 判断の⻑期記憶設計
eiei114
1
390
強化学習「理論」入門
enakai00
3
3.6k
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
250
New Earth Scene 8
popppiees
3
2.5k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
A Tale of Four Properties
chriscoyier
163
24k
The Spectacular Lies of Maps
axbom
PRO
1
930
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
エンジニアに許された特別な時間の終わり
watany
108
250k
Embracing the Ebb and Flow
colly
88
5.1k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
210
Mind Mapping
helmedeiros
PRO
1
320
Transcript
Gerrit Daegeun Kim (
[email protected]
) 1 5IVSTEBZ 0DUPCFS
Gerrit • A Code Review System based on JGit •
Open source (Apache 2 License) 2 5IVSTEBZ 0DUPCFS
Review 3 Pre-commit Review 0 25 50 75 100 ѐߊ
٣ߡӒ 5IVSTEBZ 0DUPCFS
Review 4 Pre-commit Review 0 25 50 75 100 ѐߊ
٣ߡӒ 5IVSTEBZ 0DUPCFS
Review 5 Pre-commit Review 0 25 50 75 100 ѐߊ
٣ߡӒ 5IVSTEBZ 0DUPCFS
Review 6 Pre-commit Review 0 25 50 75 100 ѐߊ
٣ߡӒ 5IVSTEBZ 0DUPCFS
Git standalone commit Local Repo Working Tree Remote Repo pull/push
7 5IVSTEBZ 0DUPCFS
Git and Gerrit commit Local Repo Working Tree merge Remote
Repo Gerrit pull/fetch push for review 8 5IVSTEBZ 0DUPCFS
Git, Gerrit and CI Local Repo commit Working Tree merge
Remote Repo Gerrit pull/fetch push for review fetch verify 9 5IVSTEBZ 0DUPCFS
Request for Review Local Repo merge Remote Repo Gerrit pull/fetch
push for review • Implementing a new feature • Committing them to the repo • Uploading changes to Gerrit 10 5IVSTEBZ 0DUPCFS
Uploading changes (Simple) 11 $ git init $ git clone
ssh://[user]@hostname:port/[project] ... $ git push origin HEAD:refs/for/master ... 5IVSTEBZ 0DUPCFS
Uploading changes (Advanced) 12 $ git push [alias] HEAD:refs/for/[branch] $
git push \ ssh://[user]@hostname:port/[project] \ HEAD:refs/for/[branch] $ git push [alias] HEAD~1:refs/for/[branch] $ git push [alias] [MD5]:refs/for/[branch] or $ git config remote.[alias].push refs/head/*:refs/for/* $ git push [alias] 5IVSTEBZ 0DUPCFS
Adding Reviewers 13 Add Reviewer 5IVSTEBZ 0DUPCFS
Uploading/Adding Reviewers (Advanced) 14 $ git push [alias] --receive-pack=‘git receive-pack
\ --reviewer [email 1] --reviewer [email 2] \ --cc [email 3] --cc [email 4]‘ \ HEAD:refs/for/[branch] or $ git config remote.[alias].receivepack \ ‘git receive-pack --reviewer [email 1] \ --cc [email 2]’ $ git push [alias] HEAD:refs/for/[branch] 5IVSTEBZ 0DUPCFS
Review and Verify merge Remote Repo Gerrit Reviewers a.2 review
a.1 fetch b.1 fetch b.2 verify 15 5IVSTEBZ 0DUPCFS
Review merge Remote Repo Gerrit Reviewers a.2 review a.1 fetch
16 • Fetching the changes • Code review! 5IVSTEBZ 0DUPCFS
Fetching the changes 17 copy 5IVSTEBZ 0DUPCFS
Fetching the changes 18 $ git fetch http://hostname:port/p/[project] \ refs/changes/[last
two numbers of change id]/ [change id]/[patch id] $ git checkout FETCH_HEAD $ git show HEAD ex) $ git fetch http://reviews.geekple.com/p/memcached \ refs/changes/40/40/2 5IVSTEBZ 0DUPCFS
Review (Advanced) 19 $ ssh -p [port] [user]@[hostname] gerrit review
\ --code-review=+1 \ --project=[project] \ [commit or change,patch] 5IVSTEBZ 0DUPCFS
Verify merge Remote Repo Gerrit b.1 fetch b.2 verify 20
• -1 when the build fails. • +1 when it passes. 5IVSTEBZ 0DUPCFS
Verify (Advanced) 21 $ ssh -p [port] [user]@[hostname] gerrit review
\ --verified=+1 \ --project=[project] \ [commit or change,patch] 5IVSTEBZ 0DUPCFS
Q & A 22 5IVSTEBZ 0DUPCFS