git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Graphical tool to merge and reorder commits

From
RDR. Diez <rdiez-2006@rd10.de>
Date
Aug 17, 2025, 21:02 UTC
Message-ID
<4398af77-3183-4ac5-9a25-aca6289d8c8f@rd10.de>
Hi all:
I find merging and rewriting the commit history with Git difficult.
Is there some graphical tool to merge and reorder commits with the mouse? Or failing that, a good terminal interface with menus and the like which allows merging and reordering in an easy, visual fashion.
Here are more details about what I mean. Say I have this commit history:
  A - B - C [master]
I want to visually create a test branch first, by dragging commits B and C together (merging them), and then appending commit A afterwards:
  A - B - C [master]
  BC - A [test]
Maybe I need to manually merge or fix some commit in the middle of the test branch. I can do that with the normal Git tools and commands I already know. Then I want to keep visually adding commits to the test branch.
That is, I want to build the test branch mostly interactively with the mouse. While doing that, I would like to click on the nodes and see the commit messages and patches, like with git-gui.
If I manage to complete the test branch (and it compiles cleanly), I then want the test branch to become master, like this:
  A - B - C - D [now orphaned]
  BC - A [master]
Ideally, I could drag the tag, or right-click on one node and assign a tag.
I know I can probably find out all the relevant commit hashes by hand and do all the merging and rearranging with the command line, but even though I am normally a console and command-line fan, I find it especially hard with Git.
I have tried or investigated numerous Git tools: git-gui, gitk, Gittyup, GitUI, GitButler, SourceGit, git-cola, Guitar, gitg, tig, giggle, qgit, RabbitVCS, Magit, lazygit, ... They are all fine for normal commits and the like. However, most fall short fairly quickly. For example, the ability to highlight character or word-based changes inside a text line is rare. And none of them really appealed to me when merging, let alone rearrange commits visually.
Thanks in advance,
   rdiez
Next: Konstantin Khomoutov
Message 1 of 11 in “Graphical tool to merge and reorder commits”
  1. R. DiezAug 17, 2025
  2. Konstantin KhomoutovAug 18, 2025
  3. Junio C HamanoAug 18, 2025
  4. Patrick SteinhardtAug 19, 2025
  5. R. DiezAug 19, 2025
  6. Bernd PetrovitschAug 19, 2025
  7. Patrick SteinhardtAug 19, 2025
  8. R. DiezAug 19, 2025
  9. Ben KnobleAug 19, 2025
  10. Junio C HamanoAug 19, 2025
  11. Johannes SixtAug 19, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.