Branch

Create git branches with naming conventions (prefix/description-hash)

majiayu000 463d299 2 files · 1.5 KB Updated 567 repo stars

File contents

Branch

Create a branch from the current commit.

  • Ensure the repo is clean
  • Use a (branch|feat|fix)/ prefix, defaulting to branch
  • End the branch with the first 8 chars of the current commit
  • After the prefix use wip (default), issue-NNN, the package being worked on, or a url-compatible description
  • If no specific user input, use defaults or infer from current work

Examples

"Start a branch" => branch/wip-abcd5678 "Create a branch for constructs" => feat/constructs-abcd5678 "Work 144" => fix/issue-144 No input but previous requests dealt with express and lambda => feat/express-lambda-abcd5678

User Input

majiayu000/claude-skill-registry-data/tree/main/development/branch-finlaysonstudio-jaypie commit 463d2999d2

Frequently asked questions

npx skillmds add majiayu000/branch-2