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
Faces do Git que você não conhece
Search
Cesar Kawakami
May 13, 2015
Programming
71
0
Share
Faces do Git que você não conhece
Talk sobre Git @ Geekie HQ, 13 de maio de 2015.
Cesar Kawakami
May 13, 2015
More Decks by Cesar Kawakami
See All by Cesar Kawakami
TimeZona: Como manter-se são lidando com tempo e timestamps em aplicações Python
cesarkawakami
0
100
Economizando servidores e acelerando aplicações web com Gevent e programação concorrente
cesarkawakami
0
310
pybr2013-lightning-traps
cesarkawakami
0
140
pythonbrasil2013
cesarkawakami
4
750
Other Decks in Programming
See All in Programming
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
440
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
170
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
3
2k
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
3.4k
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
470
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
140
Moments When Things Go Wrong
aurimas
3
140
ふつうのFeature Flag実践入門
irof
7
3.5k
Oxcを導入して開発体験が向上した話
yug1224
4
280
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
310
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
140
今さら聞けないCancellationToken
htkym
0
220
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
Leo the Paperboy
mayatellez
7
1.8k
Raft: Consensus for Rubyists
vanstee
141
7.5k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
420
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.4k
Visualization
eitanlees
152
17k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
190
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
130
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
190
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
590
Building Adaptive Systems
keathley
44
3k
Building Applications with DynamoDB
mza
96
7.1k
Transcript
Faces do Git que você não conhece Cesar Kawakami
Tópicos • Fiz cagada: como desfazer? • Explique-me submodules! •
Merge conflicts: como não se embananar? • Truques de performance • Projeto “pusher” • Code Review
Desfazendo cagadas
Desfazendo cagadas • Onde você está? • git status •
git merge, git rebase, git cherry-pick, git revert, git bisect…
None
Desfazendo cagadas • Aaah! Dei commit --amend sem querer! •
git rebase • git reset --soft
Desfazendo cagadas • Aaah! Esqueci de splittar o commit! •
git add -p
Desfazendo cagadas • Aaah! Deletei a última branch/tag que apontava
pro commit! • git fsck --lost-found • git reflog
Desfazendo cagadas • Aaah, fiz merge ao invés de rebase!
• git merge --squash
Desfazendo cagadas • In general… • git rebase • git
reset
Submodules
Submodules • Projetos externos no mesmo repo • “ponteiro” para
um sha-1 no subrepo
Submodules • vs subtrees?
Submodules • git submodule update --init --recursive • git submodule
sync --recursive
Merge conflicts
Merge conflicts
None
Merge conflicts • O importante é o commit final ficar
com o diff que você quer!
Merge conflicts • git rerere
Truques de performance
Truques de performance • Clone!
None
None
Truques de performance • Replace? • http://git-scm.com/blog/2010/03/17/ replace.html • git
filter-branch
Projeto “pusher”
Code Review
Links • .gitconfig do panda https:// dl.dropboxusercontent.com/u/158916053/ gitconfig