.tigrc 992 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
# Notes (see man tigrc for more info):
#  !  Run the command in the foreground with output shown.
#  @  Run the command in the background with no output.
#  +  Run the command synchronously, and echo the first line of output to the status bar.
#  ?  Prompt the user before executing the command.
#  <  Exit Tig after executing the command.
#  >  Re-open Tig instantly in the last displayed view after executing the command.

bind generic . @git stage .
10
bind generic ; ?git reset --hard %(commit)
11
12
13
14

bind generic = !git commit
bind generic + ?git commit --amend

15
bind generic \ !git push
16
17
bind generic | ?git push --force

18
19
20
21
22
23
# It's recommended to change your git pager settings so you see a clear screen pager
# (i.e. don't see previous diffs on screen).  You can do this for your global git
# config by executing:
#
# git config --global core.pager 'less -+$LESS -R'
#
24
25
26
27
bind generic , >git diff %(commit)..%(head)

bind generic ` !git checkout %(branch)
bind generic M ?git merge %(branch) --no-ff