Git merge icon

Added in v0.2.0

A free pencil-style git merge icon, drawn by code from 3 circles, 1 line and 1 curve. Use it as an SVG, a React component, or by name. MIT licensed.

git-merge

01Use it

Use git-merge

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 { GitMerge } from '@matita/icons/react';

<GitMerge size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="git-merge" />

JavaScript

import { GitMerge, toSvg } from '@matita/icons';

toSvg(GitMerge, { size: 24 });   // SVG string

SVG

<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-merge" data-sketch="" aria-hidden="true"><path d="M6.7 2.89C6.86 2.94 7.39 3.03 7.69 3.2C7.99 3.36 8.29 3.61 8.51 3.9C8.73 4.18 8.9 4.55 9 4.92C9.11 5.29 9.19 5.74 9.13 6.11C9.06 6.49 8.82 6.85 8.6 7.17C8.39 7.5 8.14 7.84 7.83 8.07C7.52 8.29 7.11 8.47 6.73 8.52C6.35 8.58 5.9 8.52 5.53 8.38C5.16 8.24 4.79 7.99 4.5 7.7C4.21 7.41 3.94 7.03 3.78 6.64C3.62 6.25 3.55 5.78 3.55 5.34C3.55 4.9 3.62 4.42 3.79 4.02C3.96 3.61 4.25 3.22 4.57 2.91C4.89 2.61 5.3 2.3 5.72 2.18C6.14 2.06 6.63 2.11 7.07 2.19C7.52 2.27 7.99 2.4 8.37 2.64C8.76 2.89 9.21 3.51 9.38 3.68" stroke-width="1.456"/><path d="M6.25 16.01C6.41 16.02 6.88 15.99 7.18 16.06C7.49 16.12 7.8 16.23 8.07 16.39C8.34 16.56 8.6 16.78 8.78 17.04C8.96 17.29 9.07 17.6 9.15 17.91C9.23 18.21 9.3 18.54 9.27 18.85C9.25 19.17 9.15 19.5 9 19.79C8.85 20.07 8.61 20.32 8.36 20.55C8.12 20.78 7.85 21.04 7.54 21.16C7.23 21.28 6.85 21.26 6.5 21.27C6.15 21.28 5.76 21.34 5.44 21.24C5.11 21.13 4.83 20.87 4.56 20.65C4.29 20.42 3.99 20.19 3.81 19.9C3.63 19.61 3.54 19.23 3.49 18.89C3.44 18.54 3.43 18.17 3.5 17.83C3.57 17.48 3.71 17.13 3.89 16.82C4.08 16.51 4.32 16.19 4.61 15.96C4.9 15.73 5.28 15.55 5.65 15.45C6.01 15.36 6.61 15.38 6.81 15.36" stroke-width="1.776"/><path d="M18.5 9.76C18.64 9.83 19.14 9.97 19.36 10.18C19.59 10.39 19.71 10.72 19.84 11.02C19.98 11.31 20.12 11.63 20.15 11.95C20.18 12.28 20.15 12.64 20.04 12.96C19.94 13.28 19.76 13.6 19.54 13.86C19.32 14.12 19.04 14.38 18.74 14.54C18.43 14.69 18.06 14.77 17.72 14.81C17.37 14.85 16.98 14.86 16.64 14.77C16.3 14.68 15.95 14.49 15.66 14.28C15.37 14.06 15.1 13.77 14.91 13.46C14.72 13.15 14.57 12.77 14.51 12.41C14.45 12.04 14.48 11.64 14.56 11.27C14.64 10.9 14.76 10.51 14.97 10.18C15.17 9.86 15.47 9.56 15.78 9.33C16.1 9.09 16.48 8.87 16.87 8.78C17.26 8.69 17.71 8.7 18.1 8.78C18.5 8.86 19.05 9.17 19.24 9.24" stroke-width="1.664"/><path d="M6.5 7.55Q6.26 11.96 6.48 16.37" stroke-width="1.824"/><path d="M6.58 7.49Q7.08 12.15 15.26 12.02" stroke-width="1.76"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { GitMerge } from '@matita/icons/react';

<GitMerge size={32} pencil />

The file is icons/git-merge.svg in the package (pencil/git-merge.svg for the pencil variant). Matita 0.7.0.

02How it's drawn

The recipe for git-merge

Git merge is not stored as a drawing. It is a recipe of 3 circles, 1 line and 1 curve 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.

A · Recipe
C 6.5 5.5 2.5;
C 6.5 18.5 2.5;
C 17.5 12 2.5;
L 6.5 8 6.5 16;
Q 6.5 8 7 12 15 12
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of git-merge. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

git-merge from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/git-merge.svg.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil