Skip to content
GitTree
Commit graph

Use graph drag and drop

Drag a branch label onto another branch in the graph and GitTree offers what the two can do: Fast-forward, Merge or Rebase. Nothing happens until you choose; the usual confirmation and Undo apply.

FreeUpdated

Works in GitTree Free: every local Git feature, once you are signed in.

On this page
  1. Before you start
  2. Where to find it
  3. Steps
  4. Expected result
  5. Good to know
  6. If something goes wrong
  7. Questions
  8. Related

Before you start

  • Both branches are visible in the graph.

Where to find it

  • Drag a label in the Branch / Tag column onto another branch’s label.
  • Without a mouse: right-click a branch and choose Drop Onto Branch…, then pick the target.
ActionmacOSWindows and Linux
Undo the result⌘ZCtrl+Z

Steps

  1. Drag the branch

    Press on the label of the branch that holds the work, such as feature/search, and drag it onto your target, such as develop.

  2. Choose what to do

    GitTree checks what the drop can do and offers only what applies: Fast-forward develop to feature/search, Merge feature/search into develop or Rebase feature/search onto develop.

    The branch menu in GitTree with the merge and rebase actions for feature/search and develop
    The same merge and rebase actions, here from the branch menu.GitTree interface with a demonstration repository.
  3. Confirm

    The usual dialog opens, such as the merge preview with its conflict check. Cancel is the default.

Expected result

The branches are merged, rebased or fast-forwarded as you chose; Undo puts them back.

Good to know

  • “Nothing to do with these two.” means no merge, rebase or fast-forward applies, such as a branch dropped on itself.
  • Dropping is the same as the merge and rebase actions in the branch menu.

If something goes wrong

“Could not check what this drop can do.”

Drop the branch again to retry.

Questions

Can I drag a commit?

The drop works on branch labels. To copy a single commit onto a branch, use cherry-pick.