Skip to content

Instantly share code, notes, and snippets.

@jurakovic
jurakovic / commit.sh
Last active January 4, 2025 17:54
Script for notes or "changelog" repo (more info here: https://news.ycombinator.com/item?id=42489124)
#!/bin/bash
git status -s
read -p "Press any key to show diff" -n1 -s; echo
git --no-pager diff
read -p "Press any key to stage all files" -n1 -s; echo
git add .
git status -s