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
26
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
86
Promiseを実装してみよう
kumabook
0
260
bff_tips.pdf
kumabook
0
56
Tips of server-side rendering with react + redux
kumabook
0
65
プロトコルを使って複数サービスを跨いだmusic playerを実装する
kumabook
2
510
emacs helm likeな WebExtensions を作った話
kumabook
0
130
merges sort
kumabook
0
75
lightweight introducing with reactive cocoa
kumabook
0
53
basic_sort
kumabook
0
70
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
What's in a price? How to price your products and services
michaelherold
243
12k
We Have a Design System, Now What?
morganepeng
50
7.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
7
560
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
The Cost Of JavaScript in 2023
addyosmani
45
6.7k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Code Review Best Practice
trishagee
64
17k
Designing for Performance
lara
604
68k
Practical Orchestrator
shlominoach
186
10k
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`'