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
170
Git productivity and tricks
iamjarvo
May 28, 2015
Tweet
Share
More Decks by iamjarvo
See All by iamjarvo
Pry: IRB on vitamins
iamjarvo
2
120
Other Decks in Programming
See All in Programming
Linux && Docker 研修/Linux && Docker training
forrep
24
4.5k
もう僕は OpenAPI を書きたくない
sgash708
3
990
最近のVS Codeで気になるニュース 2025/01
74th
1
260
AIの力でお手軽Chrome拡張機能作り
taiseiue
0
170
Pythonでもちょっとリッチな見た目のアプリを設計してみる
ueponx
1
530
CNCF Project の作者が考えている OSS の運営
utam0k
6
710
第3回 Snowflake 中部ユーザ会- dbt × Snowflake ハンズオン
hoto17296
4
370
[JAWS-UG横浜 #80] うわっ…今年のServerless アップデート、少なすぎ…?
maroon1st
1
180
2024年のWebフロントエンドのふりかえりと2025年
sakito
1
240
WebDriver BiDiとは何なのか
yotahada3
1
140
昭和の職場からアジャイルの世界へ
kumagoro95
1
360
動作確認やテストで漏れがちな観点3選
starfish719
6
1k
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
10
1.3k
Optimizing for Happiness
mojombo
376
70k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
12
960
It's Worth the Effort
3n
184
28k
How to train your dragon (web standard)
notwaldorf
91
5.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
How STYLIGHT went responsive
nonsquared
98
5.4k
Building an army of robots
kneath
302
45k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.8k
Producing Creativity
orderedlist
PRO
343
39k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
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`