# Start from main
git checkout main
git pull
# Create feature branch
stack new auth-system
# ... make changes, commit, create PR
# Create sub-feature 1
stack new auth-login
# ... make changes, commit, create PR
# Create sub-feature 2
git checkout auth-system # go back to parent
stack new auth-logout
# ... make changes, commit, create PR
# View structure
stack status
# Output:
# ○ main
# │
# ○ auth-system [https://github.com/you/repo/pull/10 :merged]
# │
# ○ auth-login [https://github.com/you/repo/pull/11 :open]
# │
# ● auth-logout [https://github.com/you/repo/pull/12 :open]
# Later, after making changes or when main updates
stack syncPreview what sync would do:
stack sync --dry-runSee all git/gh commands being executed:
stack sync --verbose