docs: examples pick commit hash from history

This commit is contained in:
Maas Lalani 2022-07-11 13:54:45 -04:00
parent e72857b737
commit dab3792d5f
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -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
Wed love to hear your thoughts on this project. Feel free to drop us a note!