Git commit icon
A free pencil-style git commit icon, drawn by code from 1 circle and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use git-commit
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { GitCommit } from '@matita/icons/react';
<GitCommit size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="git-commit" />JavaScript
import { GitCommit, toSvg } from '@matita/icons';
toSvg(GitCommit, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-git-commit" data-sketch="" aria-hidden="true"><path d="M14.15 9.35C14.33 9.51 14.95 9.91 15.21 10.28C15.47 10.66 15.65 11.15 15.71 11.6C15.78 12.06 15.74 12.57 15.61 13.02C15.48 13.46 15.24 13.94 14.93 14.3C14.62 14.66 14.18 14.94 13.74 15.18C13.3 15.41 12.8 15.62 12.3 15.69C11.8 15.76 11.22 15.73 10.72 15.6C10.22 15.46 9.7 15.2 9.3 14.88C8.9 14.56 8.52 14.12 8.3 13.67C8.07 13.21 7.98 12.67 7.94 12.15C7.89 11.64 7.86 11.06 8.02 10.57C8.19 10.07 8.54 9.58 8.92 9.19C9.3 8.81 9.8 8.44 10.31 8.24C10.82 8.04 11.42 7.99 11.98 7.97C12.55 7.95 13.18 7.94 13.71 8.13C14.23 8.32 14.7 8.72 15.13 9.1C15.55 9.48 16.07 10.21 16.26 10.43" stroke-width="1.488"/><path d="M2.15 12.02Q5.4 11.88 8.66 11.98" stroke-width="1.712"/><path d="M15.13 11.96Q18.52 12.05 21.9 12.07" stroke-width="1.616"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { GitCommit } from '@matita/icons/react';
<GitCommit size={32} pencil />The file is icons/git-commit.svg in the package (pencil/git-commit.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for git-commit
Git commit is not stored as a drawing. It is a recipe of 1 circle and 2 lines on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
C 12 12 3.5;
L 2.5 12 8.5 12;
L 15.5 12 21.5 12
git-commit as a number: 4189501327
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of git-commit. Seed 0 is the default.
True pixel sizes.