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)
But since 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)C
to 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 branchpP
to force pushpr
to push a given remotepd
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 man tigrc
)
! 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)
is anybody using the Triangular Work Flow?
per default i pull from remote-1
and push to remote-2
.
$ git status
On branch master
Your branch is up to date with 'remote-1/master'.
nothing to commit, working tree clean
here i miss the information Your branch is ahead of 'remote-2/master' by 1 commit.
$ git push
To /tmp/demo/remote-2/.
727c2ed..588321f master -> master
is it a good idea to get this information from .git/config
and display it in refs-view
and status-view
?