Skip to content

Instantly share code, notes, and snippets.

@frouo
Last active May 12, 2022 10:54
Show Gist options
  • Save frouo/334472c24197730c9f12075424a9204d to your computer and use it in GitHub Desktop.
Save frouo/334472c24197730c9f12075424a9204d to your computer and use it in GitHub Desktop.
bind generic 9 !@sh -c "printf '%s' $(git rev-parse --short %(commit)) | pbcopy"
bind status + ?@git commit --amend --no-edit
bind main D ?@git branch -D %(branch)
bind main P ?@git pull origin %(branch) --rebase
bind main > ?@git reset --hard %(commit)
bind main F ?git fetch --prune
bind main c @sh -c "git branch --points-at=%(commit) | \
sed -n '/^\*/ {n;p;}' | \
(cat -; echo %(commit)) | \
head -1 | \
xargs git checkout"
bind refs c ?git checkout %(branch)
set main-options = --all
set diff-highlight = true
set start-on-head = no
set main-view-id = yes
color diff-stat cyan default
@frouo
Copy link
Author

frouo commented May 12, 2022

Here is how to install diff-highlight: jonas/tig#313 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment