Scripts

Git Context Script Documentation

Generates a structured Markdown summary of staged, unstaged, and untracked Git changes for a repository and optionally copies it to the clipboard.

What it does

This script is useful for quickly generating a commit-ready context summary, especially when preparing commit messages or reviewing changes.

How to run it

python3 git_ctx.py /path/to/repo "Your change description"

Inputs

Optional dependencies:

Outputs

Example

python3 git_ctx.py ~/projects/my-app "Refactored authentication flow and fixed login bug"