Last active
May 12, 2022 10:54
-
-
Save frouo/334472c24197730c9f12075424a9204d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is how to install
diff-highlight
: jonas/tig#313 (comment)