Readit News logoReadit News
bmf-san commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
bmf-san · a month ago
What does your daily Git workflow look like?

I'm curious how other engineers manage their Git setup and workflows in practice. Specifically:

1. Primary Git client: Do you mostly use the CLI, a GUI tool, IDE integration, or custom scripts? And why?

2. Workflow shortcuts: Do you follow the classic `git add → commit → push` step-by-step, or do you bundle them into a single alias or script?

3. Interactive tasks: How do you handle more interactive tasks like staging hunks, resolving conflicts, or browsing history?

4. Alias and script maintenance: If you maintain custom aliases or functions, how do you keep them organized and shareable?

I’d love to hear what works for you (and what didn’t). Tools, habits, setups — anything goes!

bmf-san commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
johnisgood · a month ago
No, I want people to be informed well, and that requires me to hear their side so I can dispute them.

Many people has said they are thankful it calls out to "git" instead of using FFI, which I think is weird, but then there are others who go ahead and say that it is a worse thing to do, and I want people to know that no, it is not.

bmf-san · a month ago
Yep, ggc is a wrapper around the git CLI — intentionally so.

I chose to shell out to git because it's fast, stable, and has great cross-platform support. Tools like go-git and libgit2 are interesting (and I’ve looked into them), but they come with their own tradeoffs like performance, features, and build complexity.

That said, I totally get the curiosity — thanks for the discussion!

bmf-san commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
emigre · a month ago
I agree!... Definitely confusing...
bmf-san · a month ago
Yeah, I kinda thought the same when I picked the name. Didn’t expect it to trip people up this much though — might rethink it if it becomes a real issue. Thanks for the honest feedback!
bmf-san commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
frou_dh · a month ago
CLI as a paradigm is not necessarily related to emulating 1980s DEC hardware.
bmf-san · a month ago
Yeah, “terminal-based CLI” might’ve been a fuzzy phrase — I meant it’s an interactive command-line tool, not just a one-shot command like most git subcommands.

It’s somewhere between a minimal TUI and a CLI — no full-screen UI, but it does guide the user interactively.

Thanks for the discussion, made me realize I should clarify that better in the README.

Deleted Comment

bmf-san commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
johnisgood · a month ago
This is not intended to be an insult of any sort, but I am pretty sure the use of LLM to write this was not so moderate, but I have nothing against it, you have a working project. I have done the same with projects similar to this.

I use lazygit (also written in Go) and magit a lot, they are quite nice. For GUI, I use Git Cola.

I wish the demo GIF was something more complex, perhaps adding & removing a particular chunk and committing it or something like that.

bmf-san · a month ago
Thanks! I didn’t know about Magit or jj — they both look really interesting, I’ll check them out.

Also, good point about the demo GIF. I’ll try updating it with a more complex example. Appreciate the feedback!

bmf-san commented on Show HN: ggc – A terminal-based Git CLI written in Go   github.com/bmf-san/ggc... · Posted by u/bmf-san
johnisgood · a month ago
Where is the "%" showing up? I only see it before he runs ggc. It is common to use "%" instead of "$" in some shells.

In particular, C Shell (csh) and Tcsh uses "%" as the prompt character. Common in BSD systems.

Of course you can customize Zsh (or Bash) to show "%", too.

Edit: never mind, I noticed it when he quit "ggc". My bad. :)

bmf-san · a month ago
Ah, I hadn't noticed that — makes sense now that you point it out. I'll look into fixing it properly. Thanks a lot for the heads-up!

u/bmf-san

KarmaCake day25July 4, 2023
About
Software engineer.
View Original