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
Gitting like a Pro
Search
Stratos Pavlakis
June 13, 2017
Technology
290
1
Share
Gitting like a Pro
Git recipes for healthier coding
Stratos Pavlakis
June 13, 2017
More Decks by Stratos Pavlakis
See All by Stratos Pavlakis
Intro to Remix
pavlakis
0
170
Gitting like a pro - Take 2.pdf
pavlakis
0
70
4th Virtual GreeceJS - Tech News
pavlakis
0
33
3rd Virtual GreeceJS - Tech News
pavlakis
0
44
PWAs: the Application Shell & the well of surprises
pavlakis
1
210
Error Handling in Javascript
pavlakis
1
210
Async Patterns & Paradigms in Javascript
pavlakis
4
320
Introduction to FRP
pavlakis
3
240
Going Mobile
pavlakis
2
210
Other Decks in Technology
See All in Technology
AzureのIaC管理からログ調査まで、随所に役立つSkillsとCustom-Instructions / Boosting IaC and Log Analysis with Skills
aeonpeople
0
200
マルチエージェント × ハーネスエンジニアリング × GitLab Duo Agent Platformで実現する「AIエージェントに仕事をさせる時代へ。」 / 20260421 GitLab Duo Agent Platform
n11sh1
0
140
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
16k
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
23k
昔はシンプルだった_AmazonS3
kawaji_scratch
0
320
No Types Needed, Just Callable Method Check
dak2
1
340
最新の脅威動向から考える、コンテナサプライチェーンのリスクと対策
kyohmizu
1
680
Revisiting [CLS] and Patch Token Interaction in Vision Transformers
yu4u
0
340
AgentCore×VPCでの設計パターンn選と勘所
har1101
3
240
[最強DB講義]推薦システム | 基礎編
recsyslab
PRO
1
160
Amazon S3 Filesについて
yama3133
2
190
自立を加速させる神器 - EMOasis #11
stanby_inc
0
120
Featured
See All Featured
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
190
30 Presentation Tips
portentint
PRO
1
270
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
53k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
740
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
330
Raft: Consensus for Rubyists
vanstee
141
7.4k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Transcript
GITTING LIKE A PRO git recipes for healthier coding
Stratos Pavlakis UI Tech Lead @ Workable https://github.com/th3hunt https://twitter.com/th3hunt who
is this guy?
Developers agreeing on Git work ow Jacques-Louis David, 1796-1799 Oil
on Canvas
No need for such drama - Git knowledgeable developer
Git Anatomy
$ ls -F1 .git HEAD config description hooks/ info/ objects/
refs/
Now the secret to make the most out of a
tool is ...
to make it accessible!
con guration
# do some less typing git config --global alias.co checkout
git config --global alias.st status # shell out if needed la=!git config -l | grep alias | cut -c 7- # style your output log --graph \ --pretty=format':%C(yellow)%h%C(auto)%d%Creset %Creset%s %C(242)<%an>%Creset'
Git Recipes
KEEP A READABLE HISTORY REBASE don't merge Fixup Autosquash
Programmer nds 1395 con icts after ‘git rebase develop’ 3
days before the deadline Gustav Courbet, 1844–1845 Oil paint
ESCAPE GROUNDHOG DAY AND KEEP YOUR SANITY git rerere WTF
dude? no really... git rerere
FIND THE NEEDLE IN THE HAYSTACK bisect bisect on autopilot
JUMP BETWEEN BRANCHES LIKE A PRO git worktree add
REVERT A BRANCH Find the mainline parent (X) git cat-
le -p <merge-commit> Revert the merge commit git revert -m X <merge-commit>
HARDCORE MAGIC lter_branch replace
Thank you! Questions?