Skip to content

Instantly share code, notes, and snippets.

@akaszynski
akaszynski / release.sh
Created June 10, 2025 17:41
Automatically release a patch using pyproject.toml and git
function release() {
if ! git diff --quiet || ! git diff --cached --quiet; then
echo "Working directory not clean. Commit or stash changes first."
return 1
fi
git checkout main
git pull