Skip to content

feat: add wtbye alias — remove current worktree and cd to origin#10

Merged
kuderr merged 2 commits into
mainfrom
feat/wtbye-alias
Feb 26, 2026
Merged

feat: add wtbye alias — remove current worktree and cd to origin#10
kuderr merged 2 commits into
mainfrom
feat/wtbye-alias

Conversation

@kuderr
Copy link
Copy Markdown
Owner

@kuderr kuderr commented Feb 26, 2026

Summary

  • Add wtbye shell alias function that removes the current worktree and navigates back to the origin repo
  • Validates you're in a git-wt managed worktree (not in origin, not external)
  • Extracts worktree name from pwd, cds to origin first, then runs git wt rm

Test plan

  • source aliases/git-wt.sh, create a worktree with wtn test, then run wtbye — should remove and land in origin
  • Run wtbye from origin repo — should show "already in origin" error
  • Run wtbye from a non-worktree directory — should show error

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kuderr kuderr merged commit ed58244 into main Feb 26, 2026
2 checks passed
@kuderr kuderr deleted the feat/wtbye-alias branch February 26, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant