Generates a structured Markdown summary of staged, unstaged, and untracked Git changes for a repository and optionally copies it to the clipboard.
git diff and related commandsxclipThis script is useful for quickly generating a commit-ready context summary, especially when preparing commit messages or reviewing changes.
python3 git_ctx.py /path/to/repo "Your change description"
project_path: Path to the target Git repositorydescription: Short text describing the changesOptional dependencies:
git (must be installed and available in PATH)xclip (optional, for clipboard support on Linux)<project_path>/.config/_git-changes-context.md
xclippython3 git_ctx.py ~/projects/my-app "Refactored authentication flow and fixed login bug"