Skip to content

Introduction

Git Audio adds a spark of joy to coding: hear a surprise sound every time you commit. By default, it’s a sitcom laugh track.

  • Cross-platform with various audio players supported:
    • afplay: macOS
    • aplay, paplay,ffplay: Linux
  • Quick setup with a single command!
  • Ease of use thanks to simple CLI

This tool installs a Git hook that plays an audio file every time you commit. It uses the post-commit hook, which is triggered after a commit is made. The audio is played using the system’s default audio player: afplay on macOS, aplay, paplay and ffplay on Linux.

Git Audio has been tested on these popular operating systems, but should also work on similar systems that have the required audio players installed:

  • macOS 15 (Sequoia)
  • Ubuntu 24 (Noble Numbat)
  • Fedora 42 (Adams)
  • Kali Linux 2025.2