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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Hiroki Kumamoto
June 09, 2015
39
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
git_peco_tips
ミニ勉強会で話したgit + pecoのtips
Hiroki Kumamoto
June 09, 2015
More Decks by Hiroki Kumamoto
See All by Hiroki Kumamoto
How to implement timetable view on iOS
kumabook
0
120
Promiseを実装してみよう
kumabook
0
350
bff_tips.pdf
kumabook
0
100
Tips of server-side rendering with react + redux
kumabook
0
100
プロトコルを使って複数サービスを跨いだmusic playerを実装する
kumabook
2
670
emacs helm likeな WebExtensions を作った話
kumabook
0
180
merges sort
kumabook
0
89
lightweight introducing with reactive cocoa
kumabook
0
70
basic_sort
kumabook
0
79
Featured
See All Featured
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
370
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Are puppies a ranking factor?
jonoalderson
1
3.6k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
140
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
370
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
420
Designing Experiences People Love
moore
143
24k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Crafting Experiences
bethany
1
180
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
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`'