m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

Updated Examples (markdown)

Patrick Browne
2019-07-06 19:38:19 +02:00
parent 259c4c615e
commit 8284c73a43

@@ -569,6 +569,23 @@ fgst() {
} }
``` ```
Interactive fixup of a commit
```
function git-fixup () {
git ll -n 20 | fzf | cut -f 1 | xargs git commit --no-verify --fixup
}
```
Usage:
```
git fixup
git rebase -i master --autosquash
```
[Article on fixup and autosquash](https://fle.github.io/git-tip-keep-your-branch-clean-with-fixup-and-autosquash.html).
### JRNL ### JRNL
Suggested by [@windisch](https://github.com/windisch). Only tested under zsh. Suggested by [@windisch](https://github.com/windisch). Only tested under zsh.