From dab3792d5fa2668aac8573a62bcd1e1cb675fbde Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Mon, 11 Jul 2022 13:54:45 -0400 Subject: [PATCH] docs: examples pick commit hash from history --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 393306d..14f7e9e 100644 --- a/README.md +++ b/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!