1.0 KiB
1.0 KiB
Create a PR from the current branch on both GitHub and Gitea.
- If in a worktree (working directory contains
.claude/worktrees/), you are already on a feature branch — do NOT create a new one. Otherwise, create a new branch from main with a descriptive name. - Stage and commit all changes with a clean, semantic commit message. No Claude attribution lines.
- Fetch latest main:
git fetch origin main. - Rebase onto main:
git rebase origin/main.- If conflicts occur, abort the rebase (
git rebase --abort), analyze the conflicting files, write a plan to resolve them, and present the plan to the user before proceeding.
- If conflicts occur, abort the rebase (
- Push the branch to origin with
-u(use--force-with-leaseif the branch was already pushed). - Push the branch to gitea:
git push gitea <branch>. - Create a GitHub PR:
gh pr create. Reference related issues with#X. Only useCloses #Xif the PR fully resolves the issue. - Create a Gitea PR:
tea pr create --head <branch> --base mainwith the same title and description. - Report both PR URLs.