Loading...
Loading...
Git Commit Specification, covering commit message format (feat/fix/refactor), Issue linking, branch naming, PR submission preparation, and rebase usage. Used when users submit code, write commit messages, create branches, or prepare PRs.
npx skill4agent add tencentblueking/bk-ci git-commit-specificationFormat: Tag: Commit description #Issue number
Example: feat: Add pipeline template feature #1234
Branches: feature/xxx | bugfix/xxx | hotfix/xxx| Tag | Description | Example |
|---|---|---|
| New feature | |
| Bug fix | |
| Code refactoring | |
| Performance optimization | |
| Testing | |
| Documentation | |
| Build/tooling | |
| Destructive deletion | |
# Standard format
feat: Add pipeline template feature #1234
# With scope
feat(process): Add pipeline template feature #1234feature/pipeline-template-support # Feature branch
bugfix/build-log-missing # Bug fix branch
hotfix/critical-security-issue # Hotfix branch# Use rebase to streamline commits
git rebase -i HEAD~5
# Sync upstream code
git fetch upstream
git rebase upstream/develop