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 productivity and tricks
Search
iamjarvo
May 28, 2015
Programming
2
180
Git productivity and tricks
iamjarvo
May 28, 2015
Tweet
Share
More Decks by iamjarvo
See All by iamjarvo
Pry: IRB on vitamins
iamjarvo
2
130
Other Decks in Programming
See All in Programming
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
280
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.1k
AI & Enginnering
codelynx
0
110
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
Grafana:建立系統全知視角的捷徑
blueswen
0
330
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
280
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
CSC307 Lecture 08
javiergs
PRO
0
670
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
100
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
CSC307 Lecture 07
javiergs
PRO
0
550
Featured
See All Featured
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
Designing Powerful Visuals for Engaging Learning
tmiket
0
230
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Crafting Experiences
bethany
1
48
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
The Limits of Empathy - UXLibs8
cassininazir
1
210
What's in a price? How to price your products and services
michaelherold
247
13k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The SEO Collaboration Effect
kristinabergwall1
0
350
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
Transcript
Git$Produc+vity
yolo alias yolo="git push origin HEAD -f --no-verify"
Checkout)previous)branch git checkout -
Show%diff%while%wri,ng%commit%message git commit -v
Amend&commit&with&last&message git commit --amend --no-edit
Interac(vely,add,changes git add -p !p#operates#on#tracked#files.#To#track#a#file#and#not#add#the#contents# use#!N git add . -N
spec/spec_helper.rb git add -p spec/spec_helper.rb
Remove&all&untracked&files&and&folders git clean -df
Diff$2$objects git$diff$sha1..sha2 git$diff$branch1..branch2$(use$3$dots$to$diff$from$the$common$parent)
Diff$the$staging$area git diff --cached
Undo%last%commit%without%losing%change git reset --soft HEAD~1
Searching*a*repo git grep keyboard
Searching*through*the*log git log -p -S keyboard
Git$autocorrect git config --global help.autocorrect 10
Dele$ng'a'branch <"1.7.0 git push origin :branchname >=#1.7.0 git push origin
--delete branchname
Git$checkout$with$pick • pick git checkout $(git branch | pick)
Hub$command$line$u.lity hub • install(hub • alias(git(to(hub
Examples)of)hub git clone rails/rails git pull-request git browse --issues
Subway'map git log --graph \ --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold
cyan)<%an>%Creset'\ --abbrev-commit --date=relative
Jump%to%git%root cd `git rev-parse --show-cdup || pwd`