{"name":"autowt: Streamlining Your Git Worktree Management","description":"autowt is a Python-based command-line tool designed to significantly improve the Git worktree experience. It automates common workflows like creating, switching, and cleaning up worktrees, making parallel development and branch management much more efficient. This tool integrates with your terminal and offers deep customization through lifecycle hooks for tailored automation.","github":"https://github.com/irskep/autowt","url":"https://osrepos.com/repo/irskep-autowt","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/irskep-autowt","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/irskep-autowt.md","json":"https://osrepos.com/repo/irskep-autowt.json","topics":["Python","Git","Worktrees","CLI","Automation","Developer Tools","DevOps"],"keywords":["Python","Git","Worktrees","CLI","Automation","Developer Tools","DevOps"],"stars":null,"summary":"autowt is a Python-based command-line tool designed to significantly improve the Git worktree experience. It automates common workflows like creating, switching, and cleaning up worktrees, making parallel development and branch management much more efficient. This tool integrates with your terminal and offers deep customization through lifecycle hooks for tailored automation.","content":"## Introduction\n`autowt` is an open-source command-line tool that enhances the native Git worktree feature, providing a more ergonomic and automated experience. Git worktrees allow developers to have multiple working directories linked to the same repository, sharing history and making it easy to switch between branches or tasks without stashing changes. While powerful, Git's built-in worktree commands can be verbose for common operations. `autowt` simplifies these tasks, offering a streamlined approach to managing your development environment.\n\n## Installation\n`autowt` requires Python 3.10+ and Git 2.5+. Installation is straightforward using `pip`.\n\nbash\npip install autowt\n\n\n## Examples\n`autowt` drastically simplifies common worktree operations. Instead of multiple steps to create a new worktree, set up dependencies, and copy configurations, `autowt` condenses it into a single command.\n\nTo create a new worktree for a branch:\n\nsh\nautowt <branch>\n\n\nFor example, to create a worktree for `my-new-feature`:\n\nsh\nautowt my-new-feature\n\n\nThis command will create the worktree and can even open it in a new terminal tab or window, thanks to its integration with tools like iTerm2, tmux, and Ghostty.\n\nCleaning up merged or closed PR branches is also simplified:\n\nsh\nautowt cleanup\n\n\n`autowt` also supports custom commands, allowing integration with issue trackers or other tools. For instance, you could configure it to open worktrees based on issue IDs:\n\nsh\nautowt linear ABC-1234\n\n\n## Why use autowt\n`autowt` offers several compelling reasons to integrate it into your Git workflow:\n\n*   **Worktree Ergonomics**: It shortens common worktree commands and integrates with your terminal program to automate opening new sessions, supporting various terminal emulators.\n*   **Deep, Customizable Automation**: Define scripts in `.autowt.toml` to run at various points in the worktree lifecycle, such as after creation or before cleanup, enabling highly tailored workflows.\n*   **Smart Cleanup**: Configure `autowt` to automatically remove worktrees whose branches have been merged or are associated with closed pull requests on GitHub.\n*   **Friendly TUIs**: `autowt` uses interactive terminal-based UIs for tasks like configuring global settings (`autowt config`) or switching between existing worktrees (`autowt switch`).\n\n## Links\nFor more information, examples, and detailed documentation, please refer to the official resources:\n\n*   [GitHub Repository](https://github.com/irskep/autowt){:target=\"_blank\"}\n*   [Full Documentation](https://steveasleep.com/autowt/){:target=\"_blank\"}","metrics":{"detailViews":1,"githubClicks":0},"dates":{"published":null,"modified":"2026-04-25T19:54:12.000Z"}}