-
Notifications
You must be signed in to change notification settings - Fork 6
docs: update branch creation to recommend worktrees for parallel sessions #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,7 +52,13 @@ if [[ "$current_branch" == "main" || "$current_branch" == "master" ]]; then | |
| echo " refactor/description - Code restructuring" | ||
| echo "" | ||
| echo "To create a branch:" | ||
| echo " git checkout -b chore/your-description" | ||
| echo "" | ||
| echo " Option A - Worktree (recommended for parallel sessions):" | ||
| echo " ~/.aidevops/agents/scripts/worktree-helper.sh add {type}/{description}" | ||
| echo " cd ../{repo}-{type}-{description}" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line hardcodes the directory naming convention for the new worktree ( |
||
| echo "" | ||
| echo " Option B - Traditional checkout:" | ||
| echo " git checkout -b {type}/{description}" | ||
| echo "" | ||
| echo -e "${RED}DO NOT proceed with edits until on a feature branch.${NC}" | ||
| echo "" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new set of instructions has a couple of areas for improvement:
{name}is used here, butpre-edit-check.shuses{description}. To maintain consistency across the documentation and scripts, it's better to use a single placeholder.{description}seems more descriptive.Here is a suggested revision that addresses both points: