mirror of
https://github.com/charmbracelet/gum
synced 2024-06-15 20:15:08 +02:00
docs: examples pick commit hash from history
This commit is contained in:
parent
e72857b737
commit
dab3792d5f
10
README.md
10
README.md
|
@ -218,6 +218,16 @@ SESSION=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick session..."
|
|||
tmux switch-client -t $SESSION || tmux attach -t $SESSION
|
||||
```
|
||||
|
||||
#### Pick commit hash from history
|
||||
|
||||
Filter through your git history searching for commit messages and copy the
|
||||
commit hash of the selected commit.
|
||||
|
||||
```bash
|
||||
git log --oneline | gum filter | cut -d' ' -f1 # | copy
|
||||
```
|
||||
|
||||
|
||||
## Feedback
|
||||
|
||||
We’d love to hear your thoughts on this project. Feel free to drop us a note!
|
||||
|
|
Loading…
Reference in a new issue