Skip to content
Cuelark UI

Hover the icon or press Play. Suggested motion: pop. Pick another to preview it and update the animated code:

VS Code Icons · VscGitBranchCompact

Git Branch Compact icon

A free git branch compact icon from VS Code Icons, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.

License
CC BY 4.0 license
Project
github.com
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/vscode-codicons/git-branch-compact.json
components/icons/vscode-codicons-git-branch-compact.tsx
import * as React from "react";

/**
 * Git Branch Compact from VS Code Icons (https://github.com/microsoft/vscode-codicons), CC BY 4.0.
 * Via Cuelark UI: ui.cuelark.com/icons/vscode-codicons/git-branch-compact. Sized in em, colored by currentColor.
 */
export function VscGitBranchCompactIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      viewBox="0 0 12 12"
      stroke="currentColor"
      fill="currentColor"
      strokeWidth="0"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M9 2C7.897 2 7 2.897 7 4C7 4.739 7.403 5.385 8 5.731V6.5C8 6.776 7.775 7 7.5 7H4.5C4.325 7 4.156 7.031 4 7.086V3.731C4.597 3.385 5 2.739 5 2C5 0.897 4.103 0 3 0C1.897 0 1 0.897 1 2C1 3.103 1.897 4 3 4V8C1.897 8 1 8.897 1 10C1 11.103 1.897 12 3 12C4.103 12 5 11.103 5 10C5 9.28 4.617 8.647 4.044 8.295C4.122 8.121 4.297 8 4.5 8H7.5C8.327 8 9 7.327 9 6.5V6C10.103 6 11 5.103 11 4C11 2.897 10.103 2 9 2ZM2 2C2 1.449 2.448 1 3 1C3.552 1 4 1.449 4 2C4 2.551 3.552 3 3 3C2.448 3 2 2.551 2 2ZM3 11C2.448 11 2 10.551 2 10C2 9.449 2.448 9 3 9C3.552 9 4 9.449 4 10C4 10.551 3.552 11 3 11ZM9 5C8.448 5 8 4.551 8 4C8 3.449 8.448 3 9 3C9.552 3 10 3.449 10 4C10 4.551 9.552 5 9 5Z"
      />
    </svg>
  );
}
With react-icons
import { VscGitBranchCompact } from "react-icons/vsc";

export function Example() {
  return <VscGitBranchCompact className="size-5" />;
}
git-branch-compact.svg
<svg
  viewBox="0 0 12 12"
  stroke="currentColor"
  fill="currentColor"
  stroke-width="0"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    d="M9 2C7.897 2 7 2.897 7 4C7 4.739 7.403 5.385 8 5.731V6.5C8 6.776 7.775 7 7.5 7H4.5C4.325 7 4.156 7.031 4 7.086V3.731C4.597 3.385 5 2.739 5 2C5 0.897 4.103 0 3 0C1.897 0 1 0.897 1 2C1 3.103 1.897 4 3 4V8C1.897 8 1 8.897 1 10C1 11.103 1.897 12 3 12C4.103 12 5 11.103 5 10C5 9.28 4.617 8.647 4.044 8.295C4.122 8.121 4.297 8 4.5 8H7.5C8.327 8 9 7.327 9 6.5V6C10.103 6 11 5.103 11 4C11 2.897 10.103 2 9 2ZM2 2C2 1.449 2.448 1 3 1C3.552 1 4 1.449 4 2C4 2.551 3.552 3 3 3C2.448 3 2 2.551 2 2ZM3 11C2.448 11 2 10.551 2 10C2 9.449 2.448 9 3 9C3.552 9 4 9.449 4 10C4 10.551 3.552 11 3 11ZM9 5C8.448 5 8 4.551 8 4C8 3.449 8.448 3 9 3C9.552 3 10 3.449 10 4C10 4.551 9.552 5 9 5Z"
  />
</svg>
Attribution
"Git Branch Compact" icon from VS Code Icons (https://github.com/microsoft/vscode-codicons), licensed under CC BY 4.0 license.

Related icons: github, repository, code, open source