The Nastiest Git Script I Love To Use

Written: Jan 2021

It’s called changes.

Here’s how I tend to use it:

# editing a file in a Git project
$ git add $FILE_I_CHANGED
$ changes

It needs to be located in a PATH-included directory, I usually put mine into an own folder called ~/local/bin.

Not For Team Use

I wouldn’t run it on a non-private non-early-stage project. All it does, is create a new commit with the message “changes” and push it.

The script?

#! /bin/bash

set -euo pipefail

git commit -m "changes"
git push

Because most commits for my private projects won’t benefit from a more informative message, and I value the reduced friction.

It’s been surprisingly handy. Yes, it’s kind of nasty, but my “tiny tweak” workflows have never been more smooth and enjoyable.

A word from the author

Hi, I'm Vladislav. I work with small teams and bootstrapped founders who need to get their infrastructure right — reliable deployments, less operational risk, and systems that don't fall apart the moment the founder looks away. If that sounds like your situation, here's how we can work together.

I've been writing about Docker, deployment, and infrastructure since 2017. If you'd like to read more, the articles page is a good place to start — or you can sign up for the newsletter to get new pieces by email.

© 2026 vsupalov.com. All rights reserved.