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 Tips
Search
sbone
September 17, 2014
Programming
1
74
Git Tips
A handful of git tips from a VHX dev lunch.
sbone
September 17, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
Is Xcode slowly dying out in 2025?
uetyo
1
260
ISUCON研修おかわり会 講義スライド
arfes0e2b3c
1
430
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
120
「テストは愚直&&網羅的に書くほどよい」という誤解 / Test Smarter, Not Harder
munetoshi
0
150
ニーリーにおけるプロダクトエンジニア
nealle
0
790
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
230
“いい感じ“な定量評価を求めて - Four Keysとアウトカムの間の探求 -
nealle
1
9k
チームで開発し事業を加速するための"良い"設計の考え方 @ サポーターズCoLab 2025-07-08
agatan
1
320
技術同人誌をMCP Serverにしてみた
74th
1
630
PicoRuby on Rails
makicamel
2
130
Flutterで備える!Accessibility Nutrition Labels完全ガイド
yuukiw00w
0
160
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
440
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
72
4.9k
Into the Great Unknown - MozCon
thekraken
39
1.9k
Unsuck your backbone
ammeep
671
58k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
680
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Why Our Code Smells
bkeepers
PRO
337
57k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Visualization
eitanlees
146
16k
Side Projects
sachag
455
42k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Transcript
Git Tips
git bisect When and where did this break?
git bisect • find working commit hash • git bisect
start • git bisect bad • git bisect good 8579541 • git bisect reset
git add ––patch This is done, but this isn’t.
git add ––patch • git add ––patch • Stage this
hunk [y,n,q,a,d,/,e,?]? • y - yes, n - no, ? - help
git cherry-pick I need that here, now.
git cherry-pick • find desired commit hash • git cherry-pick
8579541
git stash This isn’t done, but I need to save
it.
git stash • git stash • git stash save “begin
some function” • git stash list ! • git stash pop stash@{0}
git commit ––amend Fix local commit typo or add file
git commit ––amend • git add path/file/file.ext • git commit
––amend
git reflog Your local git activity log
git reflog • git reflog ! ! • git reset
--hard 8579541
git reset ––hard Clean your working space git clean -f
Delete untracked files (-n to preview) git diff -w Diff without whitespace