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
54
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
87
Economizando servidores e acelerando aplicações web com Gevent e programação concorrente
cesarkawakami
0
290
pybr2013-lightning-traps
cesarkawakami
0
120
pythonbrasil2013
cesarkawakami
4
630
Other Decks in Programming
See All in Programming
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
840
SIMD Parallel Programming with the Vector API
josepaumard
0
170
PHPはいつから死んでいるかの調査
chiroruxx
1
400
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
180
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
930
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
27
8.3k
Goのエラースタックトレースの歴史と今後
sonatard
7
1.3k
使ってみよう Azure AI Document Intelligence
kosmosebi
2
310
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
8
4.1k
エンターテイメント業界で利用されるAWS
demuyan
0
210
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
140
Featured
See All Featured
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
How to Ace a Technical Interview
jacobian
272
22k
The Brand Is Dead. Long Live the Brand.
mthomps
49
28k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
40
4.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
10 Git Anti Patterns You Should be Aware of
lemiorhan
648
58k
Git: the NoSQL Database
bkeepers
PRO
422
63k
[RailsConf 2023] Rails as a piece of cake
palkan
23
3.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
659
120k
A Tale of Four Properties
chriscoyier
151
22k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
Docker and Python
trallard
34
2.7k
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