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
76
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
Package Management Learnings from Homebrew
mikemcquaid
0
200
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
190
AI & Enginnering
codelynx
0
110
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
370
Vibe codingでおすすめの言語と開発手法
uyuki234
0
220
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
今から始めるClaude Code超入門
448jp
7
8.4k
Apache Iceberg V3 and migration to V3
tomtanaka
0
150
CSC307 Lecture 03
javiergs
PRO
1
490
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Optimizing for Happiness
mojombo
379
71k
Facilitating Awesome Meetings
lara
57
6.7k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
110
Tell your own story through comics
letsgokoyo
1
800
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
The Pragmatic Product Professional
lauravandoore
37
7.1k
We Are The Robots
honzajavorek
0
160
ラッコキーワード サービス紹介資料
rakko
1
2.2M
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
WENDY [Excerpt]
tessaabrams
9
36k
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