commit current changes as new commit,
ammend, pull, push. Someone the introduction documentation does not cover stuff line this.
Nope, the default configuration doesn't cover those commands. (Check https://github.com/jonas/tig/blob/master/tigrc or just press
h to enter help view)
tig is just a pager for
git commands, what make it powerful is you can bind your own commands/scripts with keys in different view.s
Here is my own .tigrc, nearly make me perform all frequently-used git commands in few seconds. For example:
c to commit with only title (in status view)
Cto have a full commit (in status view)
a to amend previous commit (in main and status view)
F to fetch current branch (in main view)
C-F to fetch remote in current line (in main view)
pp to directory push to remote of current branch
pP to force push
pr to push a given remote
pd to delete remote branch
Take a look and you'll find
.tigrc is self-explained and so easy to configure. (Also, don't forget to read
! 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. > For a new tig instance < Exit Tig after executing the command.
Hey there, I'm starting with Tig and I love, it, but I'm having some trouble with switching views.... Mostly, what I want is to stage a chunk of a file
For example, I open
tig status to open status view.
Then I select the file I want to stage (move with arrows <up> <down> and then press <enter>). This splits the view in two.
Here, I'd guess I can switch to the new view pressing <tab>, and then move in that view with <up> <down> arrows, but it's not the case. I can only move with <j> and <k>, and the focus window changes if I press <tab>.
Is this the expected behaviour or I may have found a bug? (I'm in MacOS and tried already with bash and zsh shell)