In tig
command line tool for git, you go to the status view and you press u
to stage a file. What I am curious about is how to perform that actions multiple time without repeating the word u
. Is this possible to stage multiple files or all files with just one key combo?
While it is not possible out of the box, you can configure it via your tigrc file. As an example, assuming that while you are in the stage view, you want to map the A
key to the git add -A
bash command. Here is what you will need to add to your tigrc
file:
bind status A @git add -A
The syntax is pretty straightforward, the @
flag just means that the command output will not be shown.