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
29
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
95
Promiseを実装してみよう
kumabook
0
310
bff_tips.pdf
kumabook
0
74
Tips of server-side rendering with react + redux
kumabook
0
75
プロトコルを使って複数サービスを跨いだmusic playerを実装する
kumabook
2
570
emacs helm likeな WebExtensions を作った話
kumabook
0
160
merges sort
kumabook
0
79
lightweight introducing with reactive cocoa
kumabook
0
55
basic_sort
kumabook
0
72
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Making Projects Easy
brettharned
116
6.2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.8k
Product Roadmaps are Hard
iamctodd
PRO
53
11k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
106
19k
Done Done
chrislema
184
16k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
7
640
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The World Runs on Bad Software
bkeepers
PRO
68
11k
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`'