Gitship 🚀
Git on Autopilot. Stop plumbing, start shipping.
gitship is a high-level workflow manager that wraps Git in a layer of intelligence and safety. It doesn't just run Git commands; it orchestrates your entire development lifecycle—from the first line of code to the final PyPI release.
💡 Why Gitship?
Most developers treat Git as a plumbing tool. Gitship treats Git as an architect.
- Atomic Operations: Never see a "dirty tree" error again. Gitship automatically stashes and restores background noise (like translation files or build artifacts) during branch switches and merges.
- Semantic History: Your git log shouldn't be a mystery. Gitship generates data-driven commit and merge messages that categorize changes into Features, Fixes, and Stats.
- Safety-First Workflows: Rebase-by-default syncing, interactive conflict resolution with state-caching, and identity-verified publishing.
🛠 Features
🛡️ Atomic GitOps (The "Safe-State" Engine)
Gitship uses a unique Atomic Engine to ensure your repository stays clean:
- Intelligent Stashing: Automatically stashes and restores ignorable background changes (like AI-generated translations or config updates) during critical operations.
- Conflict Caching: If a merge fails, Gitship caches your resolutions, allowing you to abort, fix, and resume without losing work.
🧠 Intelligent Commits & Amends
- Category Awareness: Changes are analyzed and grouped (Code, Translations, Tests, etc.).
- Smart Amending: Rewrite your last commit message with automated analysis of what actually changed.
- Rename Detection: Content-based similarity detection even when standard Git fails to see a move.
- Condensed Exports: Export diffs with 60-70% size reduction using
--unified=1for easier code review.
🌿 Advanced Branch & Sync
- Unified Sync:
gitship syncperforms a safe pull (rebase) and push in one atomic operation. - Directional Review: Compare any two branches with a visual "Incoming Changes" vs "Target Status" report.
- Bulk Cleanup: Identify and delete redundant, merged, or stale remote branches in seconds.
- Interactive Merging: Guided merge workflows with conflict resolution caching.
📦 Dependency & Project Management
- AST-Based Scanner: Detects imports in your source code and maps them to PyPI packages.
- Permanent Ignores: Maintain a project-specific list of packages you never want to track in
pyproject.toml. - README Editor: Section-by-section interactive README editor with auto-centering for badges.
- Gitignore Manager: Add/remove patterns from
.gitignorevia CLI with common language templates.
⚓ Professional Releases
- Semantic Versioning: Guided patch/minor/major bumping.
- OIDC / Trusted Publishing: Automated PyPI release configuration.
- Draft GitHub Releases: Auto-generates high-quality release notes from categorized commit history.
🚀 Quick Start
Installation
pip install gitship
The "Daily Flow" Commands
| Command | Action |
|---|---|
gitship |
The Dashboard: Interactive menu for all operations. |
gitship sync |
Pull (rebase), resolve conflicts, and push in one go. |
gitship commit |
Analyze changes and commit with a smart message. |
gitship branch |
Manage, compare, and merge branches safely. |
gitship deps |
Sync pyproject.toml with your actual imports. |
gitship release |
Bump version, generate changelog, and ship to PyPI/GitHub. |
gitship amend |
Smart commit message rewriting with merge analysis. |
gitship ignore |
Manage .gitignore entries from CLI. |
gitship docs |
Interactive section-by-section README editor. |
gitship resolve |
Interactive conflict resolver with block-by-block choices. |
🔧 Advanced Usage
Interactive Conflict Resolution
If a merge or pull hits a conflict, Gitship enters Resolve Mode:
gitship resolve
It provides a block-by-block interactive UI, allowing you to choose "Ours", "Theirs", or "Manual" for every conflict hunk, and caches your progress if you need to step away.
Condensed Code Reviews
Export a massive diff into a readable, minimal-context review file:
gitship commit # Choose option 2 to review code changes
# Then option 4 to export diff
# Select condensed format (60-70% smaller)
Uses --unified=1 and strips noise to reduce diff size dramatically.
Atomic Operations Under the Hood
Gitship's gitops.py module wraps critical Git operations (push, pull, merge, checkout) with automatic stashing/restoring:
from gitship.gitops import atomic_git_operation
# Automatically handles background file changes
atomic_git_operation(
repo_path=repo,
git_command=["push", "origin", "main"],
description="push to origin/main"
)
📚 Documentation
Full documentation and guides coming soon. For now, explore interactively:
gitship # Main menu with all features
🤝 Contributing
Gitship is built by developers who are tired of Git overhead. If you have an idea to make Git "just work," we want your PRs!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
gitship commit😉) - Push to the branch (
gitship push) - Open a Pull Request
📄 License
MIT License 1minds3t
See LICENSE for details.
🙏 Acknowledgments
Built with:
- Python 3.8+
- Rich for beautiful terminal output
- Typer for CLI magic
- Omnipkg for advanced dependency resolution (optional)
Stop fighting Git. Start shipping code.
Release files for gitship 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gitship-0.8.1.tar.gz | 339.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitship-0.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 683.1 kB
Release files / gitship-0.8.1.tar.gz
| Download URL | gitship-0.8.1.tar.gz |
|---|---|
| Size | 339.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
088cca0a478519b8a53b8600f10147e7ef2126394c9e33c40fb387a181b29fc7
|
|
BLAKE2b-256 checksum How to use checksums |
d45e52a5fa62d52187c9e6e02cb7b350bf9b3764f5580247f2c775c4e1401ef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.
Transparency logRelease files / gitship-0.8.1-py3-none-any.whl
| Download URL | gitship-0.8.1-py3-none-any.whl |
|---|---|
| Size | 343.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cc99e04bc0e6c3a7d456d177443543f1f8a2b79692971c0fe6924a43d6bea71
|
|
BLAKE2b-256 checksum How to use checksums |
4d3f9104d7dd882d987bf9fa88a1dcd0179b04e1a7bb8409facd867c091d79eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.
Transparency log