View Diffs, File History, and Blame in GitKraken Desktop

Last updated: November 2026

Use this page to compare uncommitted changes, inspect commit diffs, switch between diff views, review file history or blame, set up an external diff tool, and create or apply patches in GitKraken Desktop.

Key constraints


Quick Start

To view a diff:

To switch diff view modes, use the Hunk, Inline, or Split toggles in the diff viewer. To revert a specific block of changes, use the Revert Hunk button in Hunk view.

To view file history or blame:

To create or apply a patch:

To use an external diff tool, go to Preferences > External Tools and select your preferred application.

To review what a coding agent changed across its commits and worktree, see Review and Undo AI Coding Agent Changes.


What Is a Diff in GitKraken Desktop?

A diff displays lines added and removed from a file:

Use the built-in diff when: you want to inspect changes, compare commits, or review file history directly in GitKraken Desktop. Use an external diff tool when: you need a specialized comparison workflow that is not covered well by the built-in viewer.

GitKraken Desktop showing a full-screen side-by-side diff of a markdown file, with syntax-highlighted line changes and a file activity panel listing added images.
Full-screen diff view with color-coded changes.

The built-in diff viewer in GitKraken Desktop includes:

Use the button to edit the file directly. See Editing Files.


Where Can I Access the Diff?

You can view diffs from:

Selecting 2 commits shows the differences between them.

View changes in #N is available for GitHub and GitHub Enterprise pull requests. It selects the pull request’s base and head commits in the graph, and the Commit Panel shows every change in the pull request. If the pull request comes from a remote you have not added, such as a fork, GitKraken Desktop asks to add that remote first. If the base or head commit is not loaded in the graph, scroll down or increase Initial Commits in Graph in Preferences > General, then try again.

GitKraken Desktop displaying a visual diff between two selected commits, with syntax-highlighted line changes and commit metadata shown in the right panel.
Diff view comparing two selected commits.

Select consecutive commits in the graph using Shift or Cmd/Ctrl + click to show their combined changes in the Commit Panel, titled Viewing diff of N commits. You can include the WIP if your selection reaches the latest commit. If you select more than 2 nonconsecutive items, GitKraken Desktop explains why it cannot show a combined diff, and the AI actions for the selection are hidden.

The Commit Panel titled "Viewing diff of 3 commits", listing three commits by Alex Lee with their dates and short SHAs, then 2 modified and 3 added files: docs/CONTRIBUTING.md, three files under docs/onboarding/ and README.md.
Combined diff across multiple selected commits.

When to use Hunk View

Hunk View displays only the changed blocks of a file.

Use Hunk View when: you want to focus only on changed blocks or revert a specific hunk quickly. Do not use it when: you need full-file context around the changes.

GitKraken Desktop displaying hunk view mode, focusing on a grouped block of code changes with syntax highlighting and minimal surrounding context.
Hunk view highlights change blocks without full context.

How to revert a hunk

In Hunk View, you can roll back a specific block of changes. Click the Revert Hunk button next to any hunk to apply an equal and opposite change to your working directory.

GitKraken Desktop showing the Revert Hunk button in the diff view, with a tooltip explaining it will reverse the selected code changes in the working directory.
Click the Revert button to undo a specific hunk directly from the diff view.

You revert only the hunk you choose, without a reset or manual edits.

When to use Inline View

Inline View displays changes within the full context of the file.

Use Inline View when: you want to read edits in the flow of the full file. Do not use it when: side-by-side comparison is easier for the change you are reviewing.

GitKraken Desktop displaying Inline View mode for file diffs, with added lines and a selected image insertion shown directly in context.
Inline view shows changes inline with full file content.

When to use Split View

Split View displays changes side-by-side, with the original file on the left and the updated version on the right.

Use Split View when: you want to compare old and new content line-by-line. Do not use it when: you want a more compact, single-column review for small changes.

Split View mode in GitKraken Desktop comparing changes between two versions of a file, highlighting additions, deletions, and updated image references side-by-side.
Split view compares before (left) and after (right) file states.

How to use Word Wrap in the diff view

The Word Wrap toggle wraps long lines in the diff view so that the full content of each line is visible without horizontal scrolling. Use it to review files with long lines, such as Markdown documents, minified JavaScript, or LaTeX files.

To toggle word wrap, click the Word Wrap button in the toolbar of the diff view, file view, file history, or merge conflict resolution panel.

GitKraken Desktop file view toolbar with the Word Wrap button highlighted in the top-right corner, showing a file with long lines wrapped for easier reading.
Click the Word Wrap button in the toolbar to toggle line wrapping.

How to use external diff tools

Configure an external diff tool in Preferences External Tools:

Use an external diff tool when: you already rely on a supported third-party app or need its advanced comparison features. Do not use an external tool when: GitKraken Desktop’s built-in diff already gives you the context and controls you need.

GitKraken Desktop External Tools preferences showing dropdown to select an external diff tool, with options like FileMerge and Git Config Default.
Configure your preferred diff tool from Preferences.

Supported tools include:

If a supported tool does not appear in the dropdown, verify that its command line tools are installed.

Beyond Compare application menu with Install Command Line Tools option highlighted, used to enable CLI integration.
Example setup with Beyond Compare.

To use a different diff tool, go to Preferences External Tools and set External Diff Tool to Git Config Default. Then add the appropriate configuration in your global .gitconfig:

macOS

Code
[diff]
    tool = meld
[difftool "meld"]
    cmd = open -a Meld --args "$LOCAL" "$REMOTE"

Linux

Code
[diff]
    tool = meld
[difftool "meld"]
    cmd = meld "$LOCAL" "$REMOTE"

Windows

Code
[diff]
    tool = meld
[difftool]
    prompt = false
[difftool "meld"]
    cmd = meld "$LOCAL" "$REMOTE"

How to compare a WIP against another commit or branch

To compare your Work in Progress (WIP) with another commit or branch:

Context menu in GitKraken Desktop showing the option to compare a selected commit against the working directory from the commit graph.
Compare WIP with a commit or branch from the graph.

How to view file blame and history

To view a file’s history or blame, open its diff and click History or Blame in the upper-right corner.

GitKraken Desktop interface showing Blame and History buttons in the file view toolbar for accessing file-level version history and author attributions.
Use buttons in the top-right to view file history or blame.

Alternatively, right-click a file after selecting a commit in the graph.

GitKraken Desktop showing file history for a selected commit, with highlighted changes in the diff view panel.
Access history or blame from the commit graph.

Blame view color-codes each line or hunk by author.

Blame view in GitKraken Desktop showing author and date annotations alongside each line of code.
Blame view showing per-line author contributions.

Use the toggle in the top-right to switch between Diff View (showing changes) and File View (showing the full file with blame).


How patch files work in GitKraken Desktop

Use patches when: you need to share changes without pushing them to a remote. Do not rely on patches for binary files: GitKraken Desktop does not generate patches from binary files.

A patch (or patch file) records the differences between files. Use patches to share changes without pushing them to a remote repository.

How to create a patch from files or commits

To create a patch:

GitKraken Desktop asks you to name the patch file.

Context menu in GitKraken Desktop showing the option to generate a patch file from a selected commit.
Create a patch from a commit.
Context menu in GitKraken Desktop showing the option to generate a patch from unstaged file changes.
Create a patch from file changes.

You can also multi-select files or commits using Shift or Cmd/Ctrl + click, then right-click to create a patch. For selected commits, the patch contains the same combined changes shown in the Commit Panel. If GitKraken Desktop cannot show a combined diff for the selection, the patch action is unavailable.

GitKraken Desktop context menu showing the option to create a patch from changes across multiple unstaged files.
Create a patch from multiple files or commits.

How to create a patch from the Command Palette

Launch the Command Palette from the toolbar or with Cmd/Ctrl + P, then search for “Create patch”.

Command Palette in GitKraken Desktop displaying the option to create a patch from all working directory changes.
Create a patch using the Command Palette.

How to apply a patch from the Command Palette

To apply a patch:

  1. Open the Command Palette (Cmd/Ctrl + P).
  2. Type “Apply patch” and select the command.
  3. Choose your .patch file in the file explorer.
Command Palette in GitKraken Desktop showing the option to apply a patch from the file system.
Apply a patch from the file system.

Note: GitKraken Desktop does not generate patches from binary files. Patch support is a preliminary feature. For feedback, contact the GitKraken support team.