Skip to content

Branches

You can use the Branches tab to manage all branches in your repository.

To open the Branches tab, click Git > Branches. The tab belongs to the repository it was opened from, and opening it again brings that tab forward rather than making a second one.

Branches, Worktrees, and Tags each carry a Refs control beside their title. Use it to move between the three. The menu marks the one you are on, and choosing another opens it for this repository, or brings its tab forward when it is already open.

You can view the current active branch, favorite branches, local branches, and remote only branches. Click Name to sort branches alphabetically by name from A to Z or Z to A. Click Activity to sort branches by the latest or oldest activity.

To delete merged local branches, click Delete Merged. In the Clean Up Merged Branches dialog, select which local branches to delete and click Delete.

Click a branch’s title row or arrow to show its details. Only one branch is expanded at a time; opening another closes the previous details. The list scrolls only as far as needed to show the expanded card. If the card is taller than the pane, its title stays at the top with details below. Details that finish loading afterward update that branch without replacing the rest of the list, preserving your search focus and scroll position.

Click Collapse All beside the search field to close branch details without collapsing the list sections or clearing your search. Click the expanded branch’s title row or arrow to close just that card.

The expanded branch row displays the following sections.

Deltas

The Deltas section compares the commits between the selected branch and the current, active branch.

Click Compare to compare the refs between the selected branch and the current branch. Click Merge to merge the selected branch into the current branch.

Before a merge starts, Zide checks whether it could overwrite your changes. If Zide blocks the merge, see A merge, revert, or cherry-pick did not start.

Remote Status

For local branches, the Remote Status section displays the latest commit on the selected branch’s remote-tracking branch.

Click Fetch to fetch the latest commits from the remote branch. Click Compare to compare the remote branch and the local branch. Click Show in Commits to go to the latest commit on the remote branch. Click Create Tag to create a tag at the remote branch.

To delete the remote branch, click Delete Remote Branch.

Worktree

The Worktree sections displays information for a worktree on the branch. To create a worktree from the branch, click Create Worktree.

When a worktree has a branch, the expanded branch row displays the path of the worktree. Click Open Worktree to open the worktree in a worktree project tab. Click Show in File Manager to open the worktree folder in your local file manager. Click Copy Path to copy the path of the worktree folder. Click Lock to lock the worktree. Click View Details to open the worktree in the Worktree tab.

To delete the worktree, click Delete.

Latest Commit

The Latest Commit section displays the commit hash, commit message, commit author, and the date of the latest commit on the branch. Click the commit hash to open the commit in a Commits tab.

Sync Remotes

The Sync Remotes section displays which remotes the branch pulls from and push to. When multiple remotes are set to a repository, click Edit to change the default remotes.

Create a new branch

To create a new branch, complete the following steps.

  1. In the Branches tab, click New Branch.
  2. In the New Branch dialog, enter a branch name.
  3. Optional To publish the branch, select Publish to remote. If the repository has more than one remote, select the remote.
  4. Click Create & Switch to create the branch and switch to it. If you selected Publish to remote, click Create & Publish.

The dialog checks the name while you type and disables creation if it duplicates or conflicts with a local branch name. For example, topic and topic/new cannot both be local branches.

Create a branch from a commit, tag, or reflog entry

You can create a branch at an earlier commit and stay on your current branch.

  1. Start from one of these places:
    • In Commits, right-click a commit and click Create Branch from Here….
    • In the Commit view, click Create Branch from Here….
    • In the Tags tab, right-click a tag and click Create Branch from Here….
    • In Reflog, right-click an entry and click Create branch from here…. You can also click this action in the Reflog Entry view.
  2. In the New Branch dialog, enter a branch name. The dialog shows the commit or tag that the branch starts from.
  3. Optional To switch to the new branch, select Switch to the new branch.
  4. Optional To publish the branch, select Publish to remote. If the repository has more than one remote, select the remote.
  5. Click Create & Publish if you selected Publish to remote. Otherwise, click Create & Switch if you selected Switch to the new branch, or Create Branch to stay on your current branch.

You cannot create a branch while a merge, rebase, cherry-pick, or revert is in progress.

Branch actions

In expanded branch row, click the following icons to perform a branch action for the current, local, or remote branches.

  • Push: Push the local commits to the remote branch.
  • Show in Commits: Go to the latest commit on the branch in Commits.
  • Checkout: Switch to the matching local branch, creating it from the remote branch if needed. If local changes block the switch, no new branch is created. If switching fails after branch creation, Zide restores your files, reports the failure, and lists the new branch.
  • Switch: Switch to the local branch.
  • Fetch: Fetch the commits from the selected remote branch.
  • Rebase: Rebase the local branch onto the current branch.
  • Branch: Create a new branch from this branch.
  • Rename: Rename the selected branch.
  • Delete: Delete the local branch.
  • Delete Remote Branch: Delete the remote branch.
  • Create Tag: Create a tag originating from the selected branch.
  • Copy: Copy the name of the branch.