简体   繁体   中英

Stage all files in tig

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM