---
title: "Git commit animated icon"
description: "Git commit animated icon (Developer & version control). A commit lands on the history line. Light: the point drops in from above, falls through the top of the empty ring and lands in its centre with a hit; the line takes the weight, dips, springs back and settles, and the point stays. Strong: the point hangs higher and rises a little before it drops, lands harder, a ripple runs out from the ring on impact, and the line settles in two beats. The preview reset fades the point back out."
canonical: https://generativeicons.com/icons/git-commit/
---

# Git commit animated icon

A commit lands on the history line. Light: the point drops in from above, falls through the top of the empty ring and lands in its centre with a hit; the line takes the weight, dips, springs back and settles, and the point stays. Strong: the point hangs higher and rises a little before it drops, lands harder, a ripple runs out from the ring on impact, and the line settles in two beats. The preview reset fades the point back out.

- Id: `git-commit`
- Category: Developer & version control
- Search terms: commit changes, commit message, commit history, changeset, revision, check in code, record changes, commit node
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/git-commit.lottie (dotLottie, 6140 bytes, sha256 aafca6d3df1b233eeb90e67b6165cb945dc03756d606aeb22df0def1fbeff2e9)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add git-commit
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/git-commit.mjs';

export function GitCommitIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/git-commit.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/git-commit/ · https://generativeicons.com/api/icons/git-commit
