{"id":26674683,"url":"https://github.com/aaronhallaert/twt-cli","last_synced_at":"2025-06-30T03:35:59.338Z","repository":{"id":104913630,"uuid":"580139557","full_name":"aaronhallaert/twt-cli","owner":"aaronhallaert","description":"Tmux Worktree Cli","archived":false,"fork":false,"pushed_at":"2025-03-04T13:33:22.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T02:41:20.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaronhallaert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-19T20:21:22.000Z","updated_at":"2025-03-04T13:33:25.000Z","dependencies_parsed_at":"2025-03-26T02:49:09.383Z","dependency_job_id":null,"html_url":"https://github.com/aaronhallaert/twt-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aaronhallaert/twt-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhallaert%2Ftwt-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhallaert%2Ftwt-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhallaert%2Ftwt-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhallaert%2Ftwt-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronhallaert","download_url":"https://codeload.github.com/aaronhallaert/twt-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhallaert%2Ftwt-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262704867,"owners_count":23351162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-26T02:38:46.683Z","updated_at":"2025-06-30T03:35:59.309Z","avatar_url":"https://github.com/aaronhallaert.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twt-cli: Tmux worktree CLI\n\nA fuzzy finder based command line interface to switch, create and remove git\nworktrees with accompanying tmux windows written in Rust.\n\n## Usage\n\n### Create\n\n```bash\ntwt-cli create [BRANCH_NAME]\n```\n\nIf no branch is specified, the application fetches (with prune)\nand lists all remote branches.\nPick one of the remote branches and a local branch is created with a worktree.\nIn addition to all the git features, a new tmux window is created checked out at\nthe new worktree.\n\n### Switch\n\n```bash\ntwt-cli switch\n```\n\nThis command shows all worktrees. If one is picked, the Tmux window will switch\nto the selected worktree.\n\n### Remove\n\n```bash\ntwt-cli remove\n```\n\nThis command shows all worktrees. If one is picked, the selected worktree is\nremoved with the corresponding branch and if the Tmux window exists for this\nworktree, it will be deleted.\n\n## Git shortcuts\n\n### Backport\n\n```bash\ntwt-cli backport \u003cBRANCH_NAME\u003e \u003cFROM_COMMIT\u003e [TO_COMMIT]\n```\n\nThis command lists all remote release branches (hardcoded filter `release/`).\nThe picked release branch(es) (select multiple with \u003ckbd\u003eTAB\u003c/kbd\u003e) is used as\nthe base of the new `\u003cBRANCH_NAME\u003e`.\nAll commits from the given commits (`[TO_COMMIT]` is optional) are cherry-picked\nonto this new branch.\n\nNote: The branch name should have the following format `#{initials}/#{feature_name}`.\nRelease branches are expected to be of the following format `release/#{release_id}`.\nThe backport branch will eventually have the name: `#{initials}/#{release_id}-#{feature_name}`.\n\n### Media\n\nhttps://user-images.githubusercontent.com/37899722/208522716-08734ec2-cc56-4cbe-aef7-0857e6db7e20.mov\n\n## Note\n\n- Upstream is hardcoded `origin`\n- `/` character in branches will be replaced by `-` in worktree names.\n- I work with an orphan branch instead of a bare repo for worktrees.\n- Link between a worktree and a branch is sometimes hardcoded by name.\n  This can cause for unexpected behaviour if you check out a different\n  branch in a worktree.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronhallaert%2Ftwt-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronhallaert%2Ftwt-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronhallaert%2Ftwt-cli/lists"}