Live data from Hacker News

Tig – Text-mode interface for Git

jonas.github.io

61–70 of 98 posts

Re: Tig – Text-mode interface for Git

#61
post #58

tig is great, it's my go-to git client on all my machines. Only since I use tig I understand how to commit hunks. It's super easy to split the changes of a file into different commits that make sense. With most other clients this is either cumbersome or not possible. So your forced to always commit all changes of a file in one commit. I guess it just really works great for my workflow and the way I think about my rep…

Out of curiosity what's wrong with git add -i? That's what I use to stage parts of a file.

Tig is just faster, staging and unstaging take a fraction of a second.

I've used Tig daily for years (about ten) and basically use it for for quickly browsing the log and changing what's staged - probably less than 5% of its features.

Everything else I do via the command line with ZSH's excellent git completion.

Re: Tig – Text-mode interface for Git

#64
Really, do you have to link screenshots separately to a flickr page?

Screenshots are super important for projects imo to quickly understand how something is actually useful. Should always make the small effort to add an example GIF or image (if applicable to the project).

Re: Tig – Text-mode interface for Git

#65
I'd like to just say that Tig has been deeply integrated into my terminal git workflow for so many years, it's one of the first things I install on any new system. I've found that practically all GUIs for git only serve to be a shell for the same commands you'd be quicker typing out in the first place, and their only unique value is a visual representation your branching and the ability to quickly stage/unstage chunks of code within a file. Tig brings these two tasks beautifully into any command line workflow, loading instantly and having good keyboard shortcuts <3

Re: Tig – Text-mode interface for Git

#67
post #3

Mandatory plug: https://magit.vc/

And for Vim nerds: https://github.com/tpope/vim-fugitive (I tend to be using different editors most of the time, but haven't found a text editor Git integration better than either Magit or Fugitive.)

There is also Vimagit, which is inspired by Magit: https://github.com/jreybert/vimagit

Re: Tig – Text-mode interface for Git

#69
As a longtime vim user it feels like if I actually wanted a TUI veneer over the git CLI I'm already quite familiar with, I'd prefer it be done within vim as an extension/plugin or something.

Having some vim-like keybindings in non-vim tools is nice, but it's always a far cry from being vim. And personally I find it incredibly annoying when I'm in something vim-like enough to establish "I'm in vim" expectations and not meet them once I start trying to use the thing like vim without restraint. I'm then put into this constant second guessing mode of "if this really were vim I'd do so and so, but should I just try it? maybe it'll do something really unexpected, time to RTFM? sigh." which is really unproductive and psychologically awful.

Especially when we're talking about dev tools like git integration, where the mental state is already going to be steeped well into text editor land, all the familiar vimisms are going to be hot in the habitual cache.

Does anyone know of anything tig-like that's implemented as a vim plugin one interacts with through regular vim windows? I wouldn't mind having an interactive list interface for tagging files to include in a `git commit -p` for instance, without leaving the editor.

Re: Tig – Text-mode interface for Git

#70
post #69

As a longtime vim user it feels like if I actually wanted a TUI veneer over the git CLI I'm already quite familiar with, I'd prefer it be done within vim as an extension/plugin or something. Having some vim-like keybindings in non-vim tools is nice, but it's always a far cry from being vim . And personally I find it incredibly annoying when I'm in something vim-like enough to establish "I'm in vim" expectations and n…

I’m a big fan of tpope’s fugitive: https://github.com/tpope/vim-fugitive
Post reply on HN