Live data from Hacker News

Tig – Text-mode interface for Git

jonas.github.io

51–60 of 98 posts

Re: Tig – Text-mode interface for Git

#51
post #35

Earlier quoted context omitted.

That's because most aren't designed as git porcelains. Magit enhances and, in some cases, replaces git's abstractions with its own. If a git frontend starts by taking git's own built-in porcelain as a given then it's already doomed to failure.

I've been using Magit for years, but I've never seen the use of "porcelain" as a jargon term to describe anything but Magit. Can you point me to a 'splaner on the use of that term? Googling hasn't gotten me anything but an insight to just how many people take porcelain (the pottery) very, very seriously.

It's silly git nomenclature for "human readable output". Except it's not even used consistently within git.

What the parent mean is that some tool rely on the human-oriented, potentially unstable output of git commands instead of using lower level layers.

Re: Tig – Text-mode interface for Git

#52

I did not find any obvious screenshots in action when clicking around on the site. So, I won't bother investigating further. Maybe others would also like some prominent screenshots that show off why we may want to use/try this.

Uhm, you didn’t see the featured “Screenshots” item in the main navigation?

For those like me who still couldn't find it: there's a small menu button on the top left.

Maybe it's because I'm on mobile, but it's a bit hard to see.

Re: Tig – Text-mode interface for Git

#53
post #52

Earlier quoted context omitted.

Uhm, you didn’t see the featured “Screenshots” item in the main navigation?

For those like me who still couldn't find it: there's a small menu button on the top left. Maybe it's because I'm on mobile, but it's a bit hard to see.

That's why. The sidebar is open by default on desktop.

Re: Tig – Text-mode interface for Git

#55
post #8

Lazygit is an alternative that I like.

I've been using it for I think well over a year now. Started with using it just to add/remove files from staging. Used git for everything else. Slowly added committing, pushing, creating patches, seeing history, ...

It's quite fast and is easy to add it to your regular git flows.

Re: Tig – Text-mode interface for Git

#56

Earlier quoted context omitted.

tig is a curses program, it's an interactive terminal GUI (a TUI), as opposed to a CLI e.g. you can browse and interact with your log rather than dump it in a pager and need a separate terminal to dive into a commit or whatever. magit is a good alternative, it's not exactly a TUI because it works entirely inside emacs and uses emacs concepts, but it's entirely text-based.

Interesting, thank you! I think I need go learn more about what "curses" means

Curses is just a library for writing command line interfaces. Normally a CLI just deals with the text buffer pushing content and the user inputting textual commands, curses allows for a bit more control like with panes, dynamic areas and giving the user more control on how to input commands.

Re: Tig – Text-mode interface for Git

#57
My favorite is lazygit: https://github.com/jesseduffield/lazygit

It has better layouts and shortcuts. I used Magit before, but hated to install Emacs only for such a small feature set. Lazygit is perfect when you want to manipulate a git repo quickly, but very similarly to Magit.

Re: Tig – Text-mode interface for Git

#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 repositories/commits.

Re: Tig – Text-mode interface for Git

#59
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.

Re: Tig – Text-mode interface for Git

#60
post #5

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.githubuse…

tig along with htop, tmux, ag, and vim are always the first packages I install on any new host. They're indispensable.
Post reply on HN