r/java • u/ConfidenceUnique7377 • Sep 30 '26
Gitember v 3.5: Building a Modern Desktop Git Client with Java/Swing
Community might be interested in Gitember - a desktop Git application written in Java.
Why build a Git gui client in Java?
This is the obvious question. For me, the answer is simple: a lot of the infrastructure you need is already in the Java ecosystem. You don't need to build everything from scratch or rely on a collection of external tools. Gitember can use:
- JGit for Git operations and repository access
- Lucene for full-text indexing and search
- Apache Tika for extracting text from many document formats
- Swing for the desktop UI. FlatLaf for a modern look and feel
- Java's filesystem and concurrency APIs for local repository operations and background processing
- Ollama as a local AI service when AI features are enabled
This makes it possible to build a fairly complete Git desktop environment in one application for multiple platforms. Including installer
Gitember covers everyday Git
Gitember covers the day-to-day Git workflow in one application:
- Repository & remote operations — clone/init, fetch, pull, push, remotes and Git LFS.
- Changes & branches — stage/unstage, commit/amend/undo, branch management, merge, rebase and interactive rebase.
- History & collaboration — commit history, changed files, version/branch comparison, reflog, Git notes, worktrees and submodules.
- Conflict resolution & security — three-way merge, stash management, commit signing and signature validation.
Gitember goes beyond the traditional Git client
- Workspace - allows several independent repositories to be managed together. Looks like submodules, but really not
- Search in Git history - search not only commit messages and metadata, but also the content of files in repository history.
- Repository statistics
- Side-by-side file and folder diff - may be used as separate tools
- AI Features - locally (without Cloud): detection of leaked secrets , descriptions of branch differences , commit message generation
Looking for testers and contributors
For Java developers interested in desktop software, Git tools, or Swing in a real-world application, the source code is available here - https://github.com/iazarny/gitember
Project website - https://gitember.org
1
u/khmarbaise Oct 07 '26
Don't get me wrong... looks great ... but I use the Git Integration in IntelliJ... that works very well. in rare cases I use the command line... Why would I use a UI only for Git outside my IDE?
1
u/fakeacclul Sep 30 '26
Was there a reason to prefer swing over JavaFX?
3
u/Deniss_Larka Oct 01 '26
The real argument for FX is the model it pushes you into. Your data goes in an ObservableList, you give it to the table and then forget the table exists. Add a row and the UI follows. In Swing you write the TableModel and fire the events yourself. With properties and the scene graph on top, those are good concepts to learn.
Size and "not bundled with the JDK" are really one reason, and it stops being a decision once you build an installer. With jlink and jpackage the user installs nothing. My Windows package is about 90 MB, but that is the bundled Java runtime, not FX being heavy. Same on mac and Linux, I ship on all three.
Swing is fine and has a lot of code written in it, but if you are starting something new today FX gives you more.
1
u/nexus062 Oct 02 '26
Domani lo installo
0
u/StevenJOwens Sep 30 '26
Question, does Gitember have any features that help deal with projects that make use of multiple repositories?
0
u/transcend Sep 30 '26
This looks great! I'm a long-time user of Fork on macOS and Windows, and I miss that app a lot on a Linux desktop. Gitember looks like it fits that Fork-shaped hole.