Skip to main content

feature-branch

Create feature branches for all work. Use when creating branches, checking out, or pushing. Prevents accidental push to main.

来源信息

仓库
forcedotcom/apex-language-support
最近来源活动
2026年6月23日 22:16
检测到的 SKILL.md 语言
英语
星标
11
分支
3

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
feature-branch
description
Create feature branches for all work. Use when creating branches, checking out, or pushing. Prevents accidental push to main.
# Feature Branch All work must be on feature branches. Never commit directly to `main`. ## Do Branch format: `<type>/W-XXXXX-short-description` (e.g. `feature/W-23006798-implementor-references`, `fix/...`, `chore/...`). Include a short description after the work item number. ```bash git fetch origin main git checkout main git pull git checkout -b feature/W-XXXXX-short-description # ... work, commit ... git push -u origin feature/W-XXXXX-short-description ``` Or, branch from remote without tracking it: ```bash git fetch origin main git checkout -b feature/W-XXXXX-short-description origin/main --no-track ``` ## Don't **Never** `git checkout -b feature/W-XXXXX origin/main` without `--no-track`. That sets the new branch to track `origin/main`. A bare `git push` would then push to `main` instead of creating a remote feature branch. ## Summary - All work on feature branches - Use `--no-track` when branching from `origin/<base>`, or branch from local `<base>` after pull - Always push with explicit branch: `git push -u origin feature/W-XXXXX`
在 GitHub 查看