# gnuWorldOrder_437

> Episode of [GNU World Order Linux Cast](https://podistic.com/podcast/gnu-world-order-linux-cast.md) · Published December 5, 2021

- **Listen on Podistic:** https://podistic.com/episode/gnuworldorder-437
- **Audio:** http://gnuworldorder.info//audiophile/gnuWorldOrder_437+m4a.m4a (audio/m4a)

## About this episode

Listener feedback.

This is the Git hook example. Save it as **.git /hook/pre-commit** in a valid
Git repository, and make it executable with **chmod +x .git /hook/pre-
commit**. It gets called any time you tell Git to commit a file, and replaces
**foo** with **bar** before committing the file.

    
    
    #!/bin/sh
    
    sed -i 's/foo/bar/g' $(git diff --cached --name-only)
    

 shasum -a256=ea45b3c05aab9f993eec202bc0dc9f8bf9f6ec4c71c6f9e4c2d277c07fdd5934
