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
0
60
Faces do Git que você não conhece
Talk sobre Git @ Geekie HQ, 13 de maio de 2015.
Cesar Kawakami
May 13, 2015
Tweet
Share
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
90
Economizando servidores e acelerando aplicações web com Gevent e programação concorrente
cesarkawakami
0
300
pybr2013-lightning-traps
cesarkawakami
0
130
pythonbrasil2013
cesarkawakami
4
710
Other Decks in Programming
See All in Programming
生成AIコーディングとの向き合い方、AIと共創するという考え方 / How to deal with generative AI coding and the concept of co-creating with AI
seike460
PRO
1
320
Enterprise Web App. Development (2): Version Control Tool Training Ver. 5.1
knakagawa
1
120
C++20 射影変換
faithandbrave
0
500
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
190
『自分のデータだけ見せたい!』を叶える──Laravel × Casbin で複雑権限をスッキリ解きほぐす 25 分
akitotsukahara
1
370
KotlinConf 2025 現地で感じたServer-Side Kotlin
n_takehata
1
220
つよそうにふるまい、つよい成果を出すのなら、つよいのかもしれない
irof
1
300
Cursor AI Agentと伴走する アプリケーションの高速リプレイス
daisuketakeda
1
120
Perplexity Slack Botを作ってAI活用を進めた話 / AI Engineering Summit プレイベント
n3xem
0
670
イベントストーミングから始めるドメイン駆動設計
jgeem
4
870
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
1
360
イベントストーミング図からコードへの変換手順 / Procedure for Converting Event Storming Diagrams to Code
nrslib
1
200
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Unsuck your backbone
ammeep
671
58k
How to train your dragon (web standard)
notwaldorf
92
6.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Writing Fast Ruby
sferik
628
61k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
A designer walks into a library…
pauljervisheath
206
24k
Fireside Chat
paigeccino
37
3.5k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
Agile that works and the tools we love
rasmusluckow
329
21k
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