Now Up To  80% OFF  GitKraken Pro
Upgrade to Save
Search
Close this search box.

Learn Git: Diffs

Beginner Git Tutorial

What are Git diffs? A diff in Git takes two data sets—like files, commits, or branches—and tells you what has changed between them.

Watch this beginner Git tutorial video to learn what diffs are in Git and how to view the diff between multiple commits or branches to compare the changes between them. When viewing the diff of files, the diff text will be highlighted in green with a + sign for added files, and the diff text will be highlighted in red with a – sign for deleted files.

Diffs provided useful information about your Git repository and can be helpful for reviewing changes while staging, helping you decide whether to merge or rebase, or simply copying and pasting code from a file.

Additional Resources

Table of Contents

Make Git Easier, Safer &
More Powerful

with GitKraken

Visual Studio Code is required to install GitLens.

Don’t have Visual Studio Code? Get it now.

Team Collaboration Services

Secure cloud-backed services that span across all products in the DevEx platform to keep your workflows connected across projects, repos, and team members
Launchpad – All your PRs, issues, & tasks in one spot to kick off a focused, unblocked day. Code Suggest – Real code suggestions anywhere in your project, as simple as in Google Docs. Cloud Patches – Speed up PR reviews by enabling early collaboration on work-in-progress. Workspaces – Group & sync repos to simplify multi-repo actions, & get new devs coding faster. DORA Insights – Data-driven code insights to track & improve development velocity. Security & Admin – Easily set up SSO, manage access, & streamline IdP integrations.
winget install gitkraken.cli