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_peco_tips
Search
Hiroki Kumamoto
June 09, 2015
0
27
git_peco_tips
ミニ勉強会で話したgit + pecoのtips
Hiroki Kumamoto
June 09, 2015
Tweet
Share
More Decks by Hiroki Kumamoto
See All by Hiroki Kumamoto
How to implement timetable view on iOS
kumabook
0
87
Promiseを実装してみよう
kumabook
0
290
bff_tips.pdf
kumabook
0
65
Tips of server-side rendering with react + redux
kumabook
0
68
プロトコルを使って複数サービスを跨いだmusic playerを実装する
kumabook
2
540
emacs helm likeな WebExtensions を作った話
kumabook
0
150
merges sort
kumabook
0
77
lightweight introducing with reactive cocoa
kumabook
0
53
basic_sort
kumabook
0
70
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
366
25k
Designing for Performance
lara
604
68k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
Documentation Writing (for coders)
carmenintech
67
4.6k
The Cult of Friendly URLs
andyhume
78
6.2k
Speed Design
sergeychernyshev
27
790
Facilitating Awesome Meetings
lara
52
6.2k
Rails Girls Zürich Keynote
gr2m
94
13k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
193
16k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.2k
Transcript
Git + peco tips Hiroki Kumamoto
git ͷࠔΓ͝ͱ • ϒϥϯν͕૿͑Δͱิؒޮ͖ͮΒ͘ͳͬͯɺ git branch ͯ݁͠ՌΛίϐʔͯ͠git checkout ͯ͠... •
cherry-pick͢Δͱ͖ʹίϛοτϋογϡίϐʔͯ͠ ϖʔετͯ͠... ͳͲͳͲ • peco Λ͔ͭ͏ͱ͍͍ײ͡ʹ
peco • https://github.com/peco/peco • Simplistic interactive filtering tool • emacs
Ͱ͍͏anything (helm), macͰ͍͏spotlightͷshellͷ pipeͷ൛ • brew install peco
peco • ΠϯλϥΫςΟϒʹߜΓ͜Έ͕Ͱ͖Δ • branch໊ͱ͔͏Δ֮͑ͰΑ͍ • ྫ o git branch
| peco o git stash list | peco o git log --oneline | peco
ઃఆྫ1: ϒϥϯνʹνΣοΫΞτ alias -g peco_branch='git branch | peco' alias -g
git_checkout='git checkout `peco_branch`' ઃఆྫ2ɿcommitΛcherry-pick alias -g peco_commit='echo_first `git log —branches --no-merges --oneline | peco`' function echo_first { echo $1 } git_cherry-pick='git cherry-pick `peco_commit`'