Skip to content

Instantly share code, notes, and snippets.

@jost125
Last active June 23, 2024 04:33
Show Gist options
  • Save jost125/f4adb4b3b4a36242b8d29f195e384645 to your computer and use it in GitHub Desktop.
Save jost125/f4adb4b3b4a36242b8d29f195e384645 to your computer and use it in GitHub Desktop.
Custom tig shortcuts
# Custom commands
bind generic <Ctrl-A> !git commit --amend
# Custom commands in tig status, works after pressing key on selected file from list
bind generic i !git add -p %(file)
# Custom commands in tig, works after pressing key on selected commit from list
bind generic f !git commit --fixup=%(commit)
bind generic <Ctrl-H> !@sh -c "echo -n %(commit) | xclip -selection primary" # copy commit hash into primary clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment