1k-git-workflow
Git workflow and conventions for OneKey development. Use when creating branches, committing code, or creating PRs. Triggers on git, branch, commit, PR, pull request, merge, workflow.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
OneKey Git Usage Guidelines
Branch Management
-
Main branch:
x- This is the primary development branch -
Workflow:
x→ create feature branch → develop → PR back tox - Do not use
onekey,master, ormainas the base branch - always usex -
NEVER work directly on the
xbranch → ALWAYS create feature branches
Branch Naming
- Feature branches:
feat/descriptionorfeature/description - Bug fixes:
fix/description - Refactoring:
refactor/description
Commit Message Format
Use Conventional Commits format:
-
feat:- New features -
fix:- Bug fixes -
refactor:- Code refactoring -
perf:/optimize:- Performance improvements -
chore:- Build, version, or non-code changes -
docs:- Documentation only
Format: type: short description
- Use lowercase
- Keep first line under 72 characters
- Include issue number if applicable:
fix: resolve login bug OK-12345
IMPORTANT - Claude Code commits:
- Do NOT include "Generated with Claude Code" link
- Do NOT include "Co-Authored-By: Claude" signature
- Commit message should be indistinguishable from human-written commits
PR Naming Convention
Follow the same format as commit messages:
-
feat: add dark mode support -
fix: resolve authentication timeout issue -
refactor: simplify payment processing logic
Common Git Commands
Creating a Feature Branch
git checkout x
git pull origin x
git checkout -b feat/my-new-feature
Committing Changes
git add .
git commit -m "feat: add user profile page"
Pushing and Creating PR
git push -u origin feat/my-new-feature
# Then create PR via GitHub UI or gh CLI
Rebasing on Latest x
git fetch origin
git rebase origin/x
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!