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
72
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
RubyLSPのマルチバイト文字対応
notfounds
0
110
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
900
開発効率向上のためのリファクタリングの一歩目の選択肢 ~コード分割~ / JJUG CCC 2024 Fall
ryounasso
0
450
Identifying User Idenity
moro
6
9.9k
CSC509 Lecture 09
javiergs
PRO
0
140
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Amazon Qを使ってIaCを触ろう!
maruto
0
390
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
5
2k
Realtime API 入門
riofujimon
0
150
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
270
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
560
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
210
Featured
See All Featured
Practical Orchestrator
shlominoach
186
10k
Faster Mobile Websites
deanohume
305
30k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9k
Teambox: Starting and Learning
jrom
133
8.8k
Building Applications with DynamoDB
mza
90
6.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Facilitating Awesome Meetings
lara
50
6.1k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
The Pragmatic Product Professional
lauravandoore
31
6.3k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
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