Live data from Hacker News

Lazygit: Simple terminal UI for Git commands

github.com

71–80 of 82 posts

Re: Lazygit: Simple terminal UI for Git commands

#71

I've used this before and it is great. I mainly use Sublime Merge these days, though: https://www.sublimemerge.com/

Can also vouch for Sublime Merge, I use it for managing commits (especially staging hunks without having to stash edit pop if I have multiple ongoing changes). I still use git at the CLI for pulls etc.

Re: Lazygit: Simple terminal UI for Git commands

#75
post #43
post #4

I use IntelliJ IDEA and often rely on their own Git functionality. But it cannot stage specific lines, only whole chunks [1]. For that, I've been using lazygit for a couple of months now. I like its simple UI and that it makes staging specific lines very easy and quick. If you like lazygit, you might also be interested in similar Git CLI clients that I collected here [2]. [1] https://youtrack.jetbrains.com/issue/IDEA…

Unless I'm misunderstanding your comment, this feature is actually included in the latest EAP/beta releases[1]. There is discussion of it at the bottom of the issue you linked. [1] https://blog.jetbrains.com/idea/2023/06/intellij-idea-2023-2...

Yes, that's it. Judging from the screencast, I will continue using lazygit for that though. Not a fan of all the clicking. Hopefully there will be a keystroke available for it.

Re: Lazygit: Simple terminal UI for Git commands

#76
post #72

So how do I discover a command? In a GUI client you'd have a menu, a search through menu, and a command palette with fuzzy search, then also more context-sensitive mouse context menu

Just type "?" And it brings up all commands in a given window

So do you scroll through the whole list to find what you want?

Re: Lazygit: Simple terminal UI for Git commands

#77
I love lazygit, until I start typing a commit message only to find that I hadn't selected any files, and lazygit has processed each key-press as a command, and my repo is some bizarre state :)

But anyway, I typically have it sitting quietly in a terminal pane and just use it for selecting files/hunks/lines for easy commit message editing. It's great for that.

Re: Lazygit: Simple terminal UI for Git commands

#78
post #15

How does this stack up against tig? https://jonas.github.io/tig

tig is great for a read only operations. Looking at the tree, peeking at diffs, finding specific commits. It's quicker to get in and out of. I reach for it instead of `git log`. lazygit makes it super easy to make modifications. Reorder commits, revert specific hunks from commits. I find it easier to use if I need to look at a really big diff. I reach for it instead of `git rebase -i`, and it can do things no native…

I find marking files, hunks and single lines to commit extremely comfortable in tig. And also reverting is as easy as selecting a file or hunk and pressing Shift+1. But yes, more complex operations are not supported or rather you have to define an external command and thus use an external tool for those.

Re: Lazygit: Simple terminal UI for Git commands

#79
post #44

I found lazygit after building something of my own thay solves some of these problems for me - git-fuzzy [0]. I'd like to share some of my thoughts about the comparison. lazygit is a TUI for git which can behave in a standalone fashion. It's also designed to be quick and easy to use to perform quite advanced actions but ones that a seasoned git user may really want when working with git history. Since I'm already a s…

Interesting project... in the hopes of maybe nerd-sniping you (or having someone tell me where it already exists), I'll tell you the story I'd really like a solution to but can never seem to find time to build: I have 5 un-pushed commits. I missed a 1-line change to that first one. I add that one line change to staging (gitui/lazygit/whatever), then I want to `git commit --fixup=COMMIT`. Finding that COMMIT is always…

Lazygit maintainer here: I've found myself in your shoes quite a bit (without the commit signing part) and a few weeks ago I put up a draft PR where if a file is selected, it highlights the commits that touch that file. Typically you want to amend the most recent commit that changed the file and typically that commit is visible without needing to scroll. But I haven't spent much time thinking about what the ideal UX is, how to activate it, etc.

PR: https://github.com/jesseduffield/lazygit/pull/2654

Re: Lazygit: Simple terminal UI for Git commands

#80
post #7

I've been using this a for while now as a replacement for fugitive, since moving from Neovim to Helix. Overall it's great, but I do wish there were some better tutorials for it thou.

Thanks for the feedback, I've been slack on documentation as more features have been added. Do you have a preference for tutorials? e.g. video or text?
Post reply on HN