John KuehJohn Kueh

git diff icon

Phosphor · git-diff · MIT

Download SVG

The Phosphor git diff icon visually represents the comparison of two versions of a file, commonly used in UIs to indicate actions related to viewing changes or differences in code.

Common uses

  • Button to view code changes
  • Indicator for modified files in a list
  • Link to a file comparison tool

Use it in React

Install
npm i @phosphor-icons/react
Import & render
import { GitDiff } from '@phosphor-icons/react';

<GitDiff size={24} />

Styles

Phosphor ships this icon in 6 styles — each its own import:

regular
<GitDiff size={24} />
thin
<GitDiff size={24} weight="thin" />
light
<GitDiff size={24} weight="light" />
bold
<GitDiff size={24} weight="bold" />
fill
<GitDiff size={24} weight="fill" />
duotone
<GitDiff size={24} weight="duotone" />

Details

Library
Phosphor (1,512 icons)
License
MIT
viewBox
0 0 256 256
Category
technology & development
Keywords
*updated*githubvcssource controlversion controlversioningdifferencecomparetechnology & developmentgitdiffcompare changessource control diffgithub changes

FAQ

What does the git diff icon represent?
It signifies the comparison between different versions of a file, often used to show changes or differences in source code.
How do I use the git diff icon in React?
You can import and use it like this: `import { GitDiff } from '@phosphor-icons/react'`. Then render it as `<GitDiff />`.
What is the license for this icon?
The Phosphor icon library, including the git diff icon, is available under the MIT license.

Related icons

The same idea in other libraries, and near matches in Phosphor.

Looking for something else? Search Phosphor and 4 more libraries by description →