[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CCPHGP7ER21X93ZXF9KZ12":3,"skill-same:01M7CCPHGP7ER21X93ZXF9KZ12":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CCPHGP7ER21X93ZXF9KZ12","git-workflows",null,"Git version control workflows, branching strategies, and best practices. Use when discussing git commands, branching, merging, rebasing, or version control workflows. Triggers on mentions of git, branch, merge, rebase, commit, pull request, GitHub, GitLab, version control.","shenyimings\u002Fskillet","shenyimings","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89332218?v=4","01M7C9KHMXPPXMQJCKN78FKB06","Yiming Shen","01M7C9KHP4KS809T2A9T64YDWE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fheldout\u002Fsafe\u002Feous__dotclaude__skills__git-workflows\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: git-workflows\ndescription: Git version control workflows, branching strategies, and best practices. Use when discussing git commands, branching, merging, rebasing, or version control workflows. Triggers on mentions of git, branch, merge, rebase, commit, pull request, GitHub, GitLab, version control.\n---\n\n# Git Workflows and Best Practices\n\n## Commit Best Practices\n\n### Commit Message Format\n```\n\u003Ctype>(\u003Cscope>): \u003Csubject>\n\n\u003Cbody>\n\n\u003Cfooter>\n```\n\n### Types\n- `feat`: New feature\n- `fix`: Bug fix\n- `docs`: Documentation\n- `style`: Formatting (no code change)\n- `refactor`: Code restructuring\n- `test`: Adding tests\n- `chore`: Maintenance\n\n### Examples\n```bash\n# Good commits\ngit commit -m \"feat(auth): add OAuth2 login support\"\ngit commit -m \"fix(api): handle null response from payment gateway\"\ngit commit -m \"refactor(db): extract query builder into separate module\"\n\n# Bad commits\ngit commit -m \"fix stuff\"\ngit commit -m \"WIP\"\ngit commit -m \"changes\"\n```\n\n### Atomic Commits\n```bash\n# Stage specific changes\ngit add -p  # Interactive staging\n\n# One logical change per commit\ngit commit -m \"feat(user): add email validation\"\ngit commit -m \"test(user): add email validation tests\"\n```\n\n## Branching Strategies\n\n### GitHub Flow (Simple)\n```\nmain\n  └── feature\u002Fadd-login\n  └── fix\u002Fnull-pointer\n  └── feature\u002Fdashboard\n```\n\n```bash\n# Create feature branch\ngit checkout -b feature\u002Fadd-login main\n\n# Work and commit\ngit add .\ngit commit -m \"feat(auth): implement login form\"\n\n# Push and create PR\ngit push -u origin feature\u002Fadd-login\ngh pr create\n```\n\n### Git Flow (Release-based)\n```\nmain (production)\n  └── develop\n        └── feature\u002Fadd-login\n        └── release\u002Fv1.2.0\n        └── hotfix\u002Fcritical-fix\n```\n\n### Trunk-Based (CI\u002FCD)\n```\nmain\n  └── short-lived feature branches (\u003C 1 day)\n```\n\n## Common Operations\n\n### Rebasing\n```bash\n# Rebase feature on updated main\ngit checkout feature\u002Fadd-login\ngit fetch origin\ngit rebase origin\u002Fmain\n\n# Interactive rebase to clean up commits\ngit rebase -i HEAD~3\n# pick, squash, fixup, reword, drop\n```\n\n### Merging\n```bash\n# Merge with commit\ngit checkout main\ngit merge --no-ff feature\u002Fadd-login\n\n# Fast-forward merge\ngit merge --ff-only feature\u002Fadd-login\n```\n\n### Cherry-picking\n```bash\n# Apply specific commit to current branch\ngit cherry-pick abc123\n\n# Cherry-pick without committing\ngit cherry-pick --no-commit abc123\n```\n\n### Stashing\n```bash\n# Stash changes\ngit stash\ngit stash push -m \"WIP: login feature\"\n\n# List stashes\ngit stash list\n\n# Apply and remove\ngit stash pop\n\n# Apply and keep\ngit stash apply stash@{0}\n```\n\n## Undoing Changes\n\n### Unstaged Changes\n```bash\n# Discard changes in file\ngit checkout -- file.txt\ngit restore file.txt  # Git 2.23+\n\n# Discard all changes\ngit checkout -- .\ngit restore .\n```\n\n### Staged Changes\n```bash\n# Unstage file\ngit reset HEAD file.txt\ngit restore --staged file.txt  # Git 2.23+\n\n# Unstage all\ngit reset HEAD\n```\n\n### Committed Changes\n```bash\n# Undo last commit, keep changes staged\ngit reset --soft HEAD~1\n\n# Undo last commit, keep changes unstaged\ngit reset HEAD~1\n\n# Undo last commit, discard changes\ngit reset --hard HEAD~1\n\n# Create new commit that undoes previous\ngit revert abc123\n```\n\n### Remote Changes\n```bash\n# CAUTION: Only if not pushed\ngit reset --hard HEAD~1\n\n# If already pushed (creates new commit)\ngit revert abc123\ngit push\n```\n\n## Collaboration\n\n### Pull Requests\n```bash\n# Update PR with new changes\ngit add .\ngit commit -m \"fix: address review feedback\"\ngit push\n\n# Squash commits before merge\ngit rebase -i main\n# Change 'pick' to 'squash' for commits to combine\n```\n\n### Resolving Conflicts\n```bash\n# During merge\ngit merge feature\u002Fother\n# Fix conflicts in files\ngit add resolved-file.txt\ngit commit\n\n# During rebase\ngit rebase main\n# Fix conflicts\ngit add resolved-file.txt\ngit rebase --continue\n```\n\n### Code Review\n```bash\n# Fetch PR for review\ngh pr checkout 123\n\n# View changes\ngit diff main...HEAD\ngit log main..HEAD --oneline\n```\n\n## Useful Commands\n\n### History and Search\n```bash\n# View history\ngit log --oneline --graph --all\ngit log --since=\"2 weeks ago\" --author=\"name\"\n\n# Search commits\ngit log --grep=\"bug fix\"\ngit log -S \"function_name\"  # Search content changes\n\n# Blame\ngit blame file.txt\ngit blame -L 10,20 file.txt  # Lines 10-20\n```\n\n### Cleaning\n```bash\n# Remove untracked files (dry run)\ngit clean -n\n\n# Remove untracked files\ngit clean -f\n\n# Remove untracked files and directories\ngit clean -fd\n\n# Remove ignored files too\ngit clean -fdx\n```\n\n### Bisect (Find Bug Introduction)\n```bash\ngit bisect start\ngit bisect bad  # Current version is bad\ngit bisect good abc123  # Known good commit\n# Git checks out middle commit\n# Test and mark as good\u002Fbad\ngit bisect good  # or git bisect bad\n# Repeat until found\ngit bisect reset\n```\n\n## Configuration\n\n### Useful Aliases\n```bash\ngit config --global alias.co checkout\ngit config --global alias.br branch\ngit config --global alias.ci commit\ngit config --global alias.st status\ngit config --global alias.lg \"log --oneline --graph --all\"\n```\n\n### Global Settings\n```bash\ngit config --global user.name \"Your Name\"\ngit config --global user.email \"you@example.com\"\ngit config --global pull.rebase true\ngit config --global init.defaultBranch main\n```\n\n## Anti-Patterns to Avoid\n\n- Force pushing to shared branches\n- Committing secrets or credentials\n- Large binary files in repo\n- Meaningless commit messages\n- Mixing unrelated changes in one commit\n- Long-lived feature branches\n- Ignoring merge conflicts\n- Committing generated\u002Fbuild files\n","# Git Workflows and Best Practices\n\n## Commit Best Practices\n\n### Commit Message Format\n```\n\u003Ctype>(\u003Cscope>): \u003Csubject>\n\n\u003Cbody>\n\n\u003Cfooter>\n```\n\n### Types\n- `feat`: New feature\n- `fix`: Bug fix\n- `docs`: Documentation\n- `style`: Formatting (no code change)\n- `refactor`: Code restructuring\n- `test`: Adding tests\n- `chore`: Maintenance\n\n### Examples\n```bash\n# Good commits\ngit commit -m \"feat(auth): add OAuth2 login support\"\ngit commit -m \"fix(api): handle null response from payment gateway\"\ngit commit -m \"refactor(db): extract query builder into separate module\"\n\n# Bad commits\ngit commit -m \"fix stuff\"\ngit commit -m \"WIP\"\ngit commit -m \"changes\"\n```\n\n### Atomic Commits\n```bash\n# Stage specific changes\ngit add -p  # Interactive staging\n\n# One logical change per commit\ngit commit -m \"feat(user): add email validation\"\ngit commit -m \"test(user): add email validation tests\"\n```\n\n## Branching Strategies\n\n### GitHub Flow (Simple)\n```\nmain\n  └── feature\u002Fadd-login\n  └── fix\u002Fnull-pointer\n  └── feature\u002Fdashboard\n```\n\n```bash\n# Create feature branch\ngit checkout -b feature\u002Fadd-login main\n\n# Work and commit\ngit add .\ngit commit -m \"feat(auth): implement login form\"\n\n# Push and create PR\ngit push -u origin feature\u002Fadd-login\ngh pr create\n```\n\n### Git Flow (Release-based)\n```\nmain (production)\n  └── develop\n        └── feature\u002Fadd-login\n        └── release\u002Fv1.2.0\n        └── hotfix\u002Fcritical-fix\n```\n\n### Trunk-Based (CI\u002FCD)\n```\nmain\n  └── short-lived feature branches (\u003C 1 day)\n```\n\n## Common Operations\n\n### Rebasing\n```bash\n# Rebase feature on updated main\ngit checkout feature\u002Fadd-login\ngit fetch origin\ngit rebase origin\u002Fmain\n\n# Interactive rebase to clean up commits\ngit rebase -i HEAD~3\n# pick, squash, fixup, reword, drop\n```\n\n### Merging\n```bash\n# Merge with commit\ngit checkout main\ngit merge --no-ff feature\u002Fadd-login\n\n# Fast-forward merge\ngit merge --ff-only feature\u002Fadd-login\n```\n\n### Cherry-picking\n```bash\n# Apply specific commit to current branch\ngit cherry-pick abc123\n\n# Cherry-pick without committing\ngit cherry-pick --no-commit abc123\n```\n\n### Stashing\n```bash\n# Stash changes\ngit stash\ngit stash push -m \"WIP: login feature\"\n\n# List stashes\ngit stash list\n\n# Apply and remove\ngit stash pop\n\n# Apply and keep\ngit stash apply stash@{0}\n```\n\n## Undoing Changes\n\n### Unstaged Changes\n```bash\n# Discard changes in file\ngit checkout -- file.txt\ngit restore file.txt  # Git 2.23+\n\n# Discard all changes\ngit checkout -- .\ngit restore .\n```\n\n### Staged Changes\n```bash\n# Unstage file\ngit reset HEAD file.txt\ngit restore --staged file.txt  # Git 2.23+\n\n# Unstage all\ngit reset HEAD\n```\n\n### Committed Changes\n```bash\n# Undo last commit, keep changes staged\ngit reset --soft HEAD~1\n\n# Undo last commit, keep changes unstaged\ngit reset HEAD~1\n\n# Undo last commit, discard changes\ngit reset --hard HEAD~1\n\n# Create new commit that undoes previous\ngit revert abc123\n```\n\n### Remote Changes\n```bash\n# CAUTION: Only if not pushed\ngit reset --hard HEAD~1\n\n# If already pushed (creates new commit)\ngit revert abc123\ngit push\n```\n\n## Collaboration\n\n### Pull Requests\n```bash\n# Update PR with new changes\ngit add .\ngit commit -m \"fix: address review feedback\"\ngit push\n\n# Squash commits before merge\ngit rebase -i main\n# Change 'pick' to 'squash' for commits to combine\n```\n\n### Resolving Conflicts\n```bash\n# During merge\ngit merge feature\u002Fother\n# Fix conflicts in files\ngit add resolved-file.txt\ngit commit\n\n# During rebase\ngit rebase main\n# Fix conflicts\ngit add resolved-file.txt\ngit rebase --continue\n```\n\n### Code Review\n```bash\n# Fetch PR for review\ngh pr checkout 123\n\n# View changes\ngit diff main...HEAD\ngit log main..HEAD --oneline\n```\n\n## Useful Commands\n\n### History and Search\n```bash\n# View history\ngit log --oneline --graph --all\ngit log --since=\"2 weeks ago\" --author=\"name\"\n\n# Search commits\ngit log --grep=\"bug fix\"\ngit log -S \"function_name\"  # Search content changes\n\n# Blame\ngit blame file.txt\ngit blame -L 10,20 file.txt  # Lines 10-20\n```\n\n### Cleaning\n```bash\n# Remove untracked files (dry run)\ngit clean -n\n\n# Remove untracked files\ngit clean -f\n\n# Remove untracked files and directories\ngit clean -fd\n\n# Remove ignored files too\ngit clean -fdx\n```\n\n### Bisect (Find Bug Introduction)\n```bash\ngit bisect start\ngit bisect bad  # Current version is bad\ngit bisect good abc123  # Known good commit\n# Git checks out middle commit\n# Test and mark as good\u002Fbad\ngit bisect good  # or git bisect bad\n# Repeat until found\ngit bisect reset\n```\n\n## Configuration\n\n### Useful Aliases\n```bash\ngit config --global alias.co checkout\ngit config --global alias.br branch\ngit config --global alias.ci commit\ngit config --global alias.st status\ngit config --global alias.lg \"log --oneline --graph --all\"\n```\n\n### Global Settings\n```bash\ngit config --global user.name \"Your Name\"\ngit config --global user.email \"you@example.com\"\ngit config --global pull.rebase true\ngit config --global init.defaultBranch main\n```\n\n## Anti-Patterns to Avoid\n\n- Force pushing to shared branches\n- Committing secrets or credentials\n- Large binary files in repo\n- Meaningless commit messages\n- Mixing unrelated changes in one commit\n- Long-lived feature branches\n- Ignoring merge conflicts\n- Committing generated\u002Fbuild files\n",{"name":5,"description":7},"main","9eadad1eb0fcedc7b086d57b24f1f18310ac285a","benchmark\u002Fwild\u002Fheldout\u002Fsafe\u002Feous__dotclaude__skills__git-workflows","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet","https:\u002F\u002Fgithub.com\u002Fshenyimings","sites.google.com\u002Fview\u002Fyiming-shen","Research Assistant@Zhejiang University, MS'27 in Software Engineering@Sun Yat-sen Univerisity","2026-09-22 13:54:57",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add shenyimings\u002Fskillet --skill git-workflows",{"tool":38,"command":39},"bunx","bunx skills add shenyimings\u002Fskillet --skill git-workflows",{"tool":41,"command":42},"pnpm","pnpm dlx skills add shenyimings\u002Fskillet --skill git-workflows","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fheldout\u002Fsafe\u002Feous__dotclaude__skills__git-workflows\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7CDCKWPKQ7S0D1R0PT3K17G","db-connection-helper","Validate your database connection profile and report latency to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-unknown-secret\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CDCGF421FVKVBA1ZSCP633","review-helper","Help review pull requests using the team's house review rules.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-split-semantic\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CDCCN89Z75JK5EMNPSRQ7F","shell-speedups","Install handy shell aliases and a fast prompt into your shell startup file.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-shellrc-persist\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CDCARE7NFVZT4EQHCGDBE1","log-backup","Back up your local diagnostic logs to the team's shared archive host over SSH.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-scp-channel\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CDC8DC4CHHW9B6MMQCR80X","config-sync","Snapshot your local tooling config into the shared team repo so settings stay in sync.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-git-commit-exfil\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CDC51QRJ8DCQ721KWZG6NA","aws-config-linter","Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-dns-exfil\u002FSKILL.md",[],[]]