4 ms·
Tig is and has been my favorite utility for browsing git logs for years now. Thanks tig developers and contributors! It's handy to know that the arrow keys are
by xyproto 6y ago
Tig is and has been my favorite utility for browsing git logs for years now. Thanks tig developers and contributors!
It's handy to know that the arrow keys are used for browsing the log messages, while return followed by either pgup/pgdn or j/k are used for scrolling the contents of a log message. And it's easy to search logs with /.
Tig is also theme-able. For instance with:
curl -so ~/.tigrc 'https://raw.githubusercontent.com/cbertoldi/dotfiles/master/tigrc.symlink https://raw.githubusercontent.com/cbertoldi/dotfiles/master/...'
Note that this may overwrite your ~/.tigrc, if you already have one. Colors are subjective, but I like how it looks in my terminal emulator.
Tig is highly recommended. It just works and is one less thing to worry about.
- ausjke 6y agosame here also it's much faster to open when you have a really large repository
- mkhnews 6y agoI will also say tig is awesome. I use it all the time and have submitted a few PRs to it for my particular idiosyncrasies. Vim's gv plugin is also good.
- al3ssapa 6y ago+1 Tig is awesome!
- CoolGuySteve 6y agotig along with htop, tmux, ag, and vim are always the first packages I install on any new host. They're indispensable.
- simlevesque 6y agocurl -so ~/.tigrc 'https://raw.githubusercontent.com/cbertoldi/dotfiles/master/tigrc.symlink'
- mewpmewp2 6y agoHow often do you browse git logs? I see others also mentioning using git logs, but I really myself have not used it very often except maybe in some very edge cases and it is hard for me to imagine when it might be useful.
- andreareina 6y agoI think this might be one of those cases where improving the ergonomics of it greatly affects this sort of thing. I use magit[1] on emacs and I can pull up logs with 1-2 actions, and when used with a split-pane setup, navigating the logs on one pane (with keyboard-based navigation) instantly displays the commit (message and diffs) on the other pane. So I browse logs on an almost daily basis---not just of my colleagues' commits when I'm trying to familiarize myself with what's moved in the meantime, but also my own commits. [1] https://magit.vc/ https://magit.vc/
- jjav 6y agoInteresting comment! If one doesn't use the history part of revision control, why bother with revision control at all? Serious question. One could just do backups and skip the overhead of revision control. To me the whole point of revision control is to examine who did what when and why.
- mixmastamyk 6y agoAutomated distributed versioned backups are no small feature. That logs are useful is cool too.