Skip to main content

🫏 git-donkey

Ask DeepWiki

Because sometimes you need a worktree, and a donkey's got your back.

git-donkey is a collection of Git subcommands that make branch-based development less of a… well, you know. Stop wrestling with worktrees, tracking branches, and repository scaffolding—let the donkey do the heavy lifting.

What does it do?

git-donkey gives you Git subcommands for branch-based work:

  • git donkey – Creates linked worktrees at ../{repo}.worktrees/{branch} so you can work on multiple branches without the constant stash-switch-unstash dance. Bonus: automatically applies template overlays from your personal template directory!

  • git track – Fetch and switch to (or create) tracking branches in one command. No more "did I create this branch yet?" confusion.

  • git incoming / git in – Preview upstream commits that would be pulled into the current branch.

  • git outgoing / git out – Preview local commits that would be pushed to the current branch's upstream.

  • git fafo – Scaffold and publish a new GitHub repository from your agent-template projects. Find out what happens when you want to start a new project fast.

  • git plonk – Reclaim disk space from completed, clean git donkey worktrees, optionally cleaning generated directories or deleting completed local branches. Worktrees holding uncommitted work are reported and left alone rather than discarded.

  • git donkey-template – Manage template directories that get automatically copied into new worktrees. Perfect for per-repository config files like .editorconfig or .vscode/settings.json.

Quick start

# Create a worktree from the principal remote's default branch
# Existing checkouts are not pulled or rebased by default.
git donkey feature/awesome-stuff

# Opt in to a fast-forward-only update of an explicit local base
git donkey feature/from-main main --pull-ff

# Track a remote branch
git track feature/from-teammate


# Preview pull and push candidates
git incoming
git outgoing

# Scaffold a new GitHub repo from a template
git fafo my-new-project python

# Remove completed git-donkey worktrees
git plonk

# Set up a template directory for this repo
git donkey-template

Agent skill

The worktree-management skill provides an agent workflow for git donkey and git plonk, including remote-default bases, existing-worktree reuse, stacked branches, and reviewed cleanup. Its bundled cleanup checklist covers the cleanliness check, completion-marker limitations, and other agents' active work.

To install it in a compatible agent's skill directory, copy or symlink the whole skill/git-donkey-worktrees/ directory, retaining the directory name and its references/ subdirectory. Select the agent's documented skill location; the Python package installation does not install this skill automatically.

Learn more

Check out the Users' Guide for detailed usage, options, and examples. The donkey's got a lot of tricks up its… hooves?

License

This project is licensed under the ISC License. See the LICENSE file for details.

Contributing

Found a bug? Have an idea? The donkey welcomes contributions! Please ensure your changes follow the project's guidelines in AGENTS.md.

Metadata

Release files for git-donkey 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-donkey 0.2.0
File Size Uploaded Provenance Actions
git_donkey-0.2.0.tar.gz 349.6 kB Without provenance Details for git_donkey-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for git-donkey 0.2.0
File Interpreter ABI Platform Actions
git_donkey-0.2.0-py3-none-any.whl Python 3 none any Details for git_donkey-0.2.0-py3-none-any.whl

Total release size: 417.2 kB

Release files / git_donkey-0.2.0.tar.gz

Download URL git_donkey-0.2.0.tar.gz
Size 349.6 kB
Tags Source
SHA-256 checksum
How to use checksums
954d5a5a5d2229c29bc10c08260d219e4846987d09fb5507523dd631ebddba43
BLAKE2b-256 checksum
How to use checksums
7ef026da7be781b8c6c07eeb38f9ccbea6902937e97768c3eef103b870dc3cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / git_donkey-0.2.0-py3-none-any.whl

Download URL git_donkey-0.2.0-py3-none-any.whl
Size 67.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e02927a0302fa2559f9f6619ff2c0226309c82dca5b38f274ff2368b43e0057b
BLAKE2b-256 checksum
How to use checksums
3d0b5ede98b6aa407a51a91952e8ca69fe0ab8533ead42408e95ce06c18cdd6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for git-donkey 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page