News for hackers. Stuff that matters.
Re:Fzf – the basics part 1 – layout by graton on Friday February 05, 2021 @01:35AM (#26033720)
My favorite ~/.gitconfig [alias] that uses fzf:

  # Allows you to easily pick what to rebase
  frbi = "!f() { git rebase -i $(git log --pretty=oneline --color=always | fzf --ansi | cut -d ' ' -f1)^ ; }; f"
Then just do:

  git frbi
Re:Fzf – the basics part 1 – layout by skrebbel on Friday February 05, 2021 @06:06AM (#26035068)
Same! I use it for switching between branches:

    sw = !git checkout $(git branch -a --format '%(refname:short)' | sed 's~origin/~~' | sort | uniq | fzf)
Just type `git sw` and fzfuzzy type the branch name you want to go to.
Re:Fzf – the basics part 1 – layout by dansomething on Friday February 05, 2021 @09:47AM (#26036817)
Here's some additional FZF Git love posted by junegunn a while back. https://junegunn.kr/2016/07/fzf-git/
Re:Fzf – the basics part 1 – layout by BurpyDave on Friday February 05, 2021 @05:35AM (#26034888)
love this, shows how simple fzf is to use as well. just gives us a nice way to pick out a line from git log. Beautiful.
Re:Fzf – the basics part 1 – layout by tarruda on Friday February 05, 2021 @03:53AM (#26034364)
This is a gem, thanks!