dotfiles/fish/.config/fish/functions/fcr.fish

4 lines
187 B
Fish
Raw Normal View History

function fcr --description 'Git reset to a selected commit using fzf'
2022-04-12 14:11:50 +02:00
git reset $argv (git log --pretty=oneline --abbrev-commit --color=always | fzf --ansi +s | awk '{print $1}')
end