Cursor rule
.cursor/rules/git-workflow.mdcGit workflow and branching rules
Cursor rules
Quality
65/100
Scores the file, not the repository.Length
215 words
5 headings · 2 code blocksRepository
15
— · pushed 76 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Git Workflow and Branching Rules78## CRITICAL: Branch Management910**DO NOT create a new branch if you're already on a feature branch!**1112### When handling PR requests or /pr command:13141. **ALWAYS** check current branch first:15```bash16 git branch --show-current17```18192. **Decision logic**:20 - If on `main` or `master` → Create a new feature branch21 - If already on a feature branch → Use the current branch22 - NEVER create nested feature branches23243. **Workflow**:25```bash26 # First, always check where you are27 current_branch=$(git branch --show-current)2829 # Only create new branch if on main/master30 if [ "$current_branch" = "main" ] || [ "$current_branch" = "master" ]; then31 git checkout -b feature/new-feature32 else33 # Already on feature branch - just commit and push here34 echo "Already on feature branch: $current_branch"35 fi36```3738## PR Updates3940When updating an existing PR:41- Add new commits to the same branch42- Push to the existing remote branch43- The PR will automatically update4445## Common Mistakes to Avoid4647❌ Creating a new branch when already on a feature branch48❌ Creating multiple PRs for the same feature49❌ Abandoning branches with uncommitted changes5051✅ Check branch status before any git operations52✅ Commit to the current feature branch53✅ Keep related changes in the same PR
Also in settlemint/sdk
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| settlemint/sdk.cursor/rules/commands.mdc · 15 | Cursor rules | setup | 31/100 | 3 days ago | |
| settlemint/sdk.cursor/rules/solidity.mdc · 15 | Cursor rules | teststylearchtypes+6 | 73/100 | 3 days ago | |
| settlemint/sdk.cursor/rules/bun.mdc · 15 | Cursor rules | setupbuildtest | 73/100 | 3 days ago | |
| settlemint/sdk.cursor/rules/commits.mdc · 15 | Cursor rules | lint-formattypesgitdependencies | 48/100 | 3 days ago | |
| settlemint/sdk.cursor/rules/mcp.mdc · 15 | Cursor rules | no sections | 4/100 | 3 days ago | |
| settlemint/sdk.cursor/rules/shadcn.mdc · 15 | Cursor rules | ui | 55/100 | 3 days ago | |
| settlemint/sdk.cursor/rules/typescript.mdc · 15 | Cursor rules | setuplint-formatstylearch+3 | 66/100 | 3 days ago | |
| settlemint/sdkCLAUDE.md · 15 | CLAUDE.md | setupbuildtestlint-format+10 | 96/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
