10 ms·
I found these online and added them to my gitconfig at one point... I can't take credit for them. Integrating fzf with git makes working with branches even bett
by drmohundro 2y ago
I found these online and added them to my gitconfig at one point... I can't take credit for them. Integrating fzf with git makes working with branches even better (with fuzzy matches for checking out as well as deleting branches)...
cob = !BRANCH=`git recent --no-color | fzf` && git checkout ${BRANCH}
db = !BRANCH=`git branch --no-color | fzf` && git branch -d ${BRANCH}
dbf = !BRANCH=`git branch --no-color | fzf` && git branch -D ${BRANCH}
- gcarvalho 2y agoThere’s fzf-git.sh [1], which is a collection of bindings to invoke fzf for things like branches, commits, tags, etc. I use it pretty often. [1] https://github.com/junegunn/fzf-git.sh https://github.com/junegunn/fzf-git.sh