Tig - Console GUI for Git

    I have never been a fan of gitk and rarely used it, preferring the console and custom aliases. Thanks to the grossws habrayuzer , I discovered tig . This is what I missed. After a month of using it in my work, I want to share the find with you.

    Tig is a console GUI (TUI) for Git, based on Ncurses .
    Main advantages:

    • amazing speed, 20,000 commits ready to view in a quarter of a second
    • cantilevered
    • vim style management

    Screenshots of the main modes and comparison with gitk.

    Installation:


    git clone https://github.com/jonas/tig.git
    cd tig
    make prefix=/usr
    sudo make install prefix=/usr
    

    Bubuntovodam I do not recommend installing tig through apt-get, because the repository contains version 1.0, which contains several bugs that are currently fixed (v1.2.1).

    One of the most obvious reasons for using Tig is to use only the keyboard. You make less keyboard-mouse movements, the elbow on the right sleeve will last longer :)

    Shortcuts in descending order:
    • h - help, list of all commands
    • q - exit active view
    • / - search (for example, by name of commits or by author)
    • n - next search result
    • N - previous search result

    History view ( m)


    Tig starts by default in the view history of commits. This is git log, slightly decorated with ASCII-art (no more than necessary).

    Diff view ( d)


    The mode I use most often. I use it in the case when you need to find and check one specific commit.
    • j, kor arrows - move
    • Enter - scrolling
    • ]and [- increase / decrease diff context
    • B - blame
    • e - open the file in Vim, the cursor will be where diff

    Log view ( l)


    I use it when I want to get a big picture about the latest commits.

    Status view ( S)


    I would call this mode an interactive git add. Shortcut u is used to add / remove files to the index (stage).

    Branch view ( H)


    View branches so that for each git log is immediately visible. To quickly switch to the branch serves as a shortcut the C .

    Stash view ( y)


    View all stash
    • j, kor arrows - move
    • Enter - view content
    • P stash pop (apply change from stack)

    Good commits;)

    Also popular now: