git-advanced-workflows
rebase、cherry-pick、bisect、worktree、reflogを含む高度なGitワークフローをマスターし、クリーンな履歴を維持し、あらゆる状況から回復。複雑なGit履歴の管理、フィーチャーブランチでの協働、リポジトリ問題のトラブルシューティング時に使用。
Security Assessment
About git-advanced-workflows
The 'git-advanced-workflows' skill is designed to help developers master advanced Git techniques and maintain a clean commit history. It addresses common challenges like cleaning up commit history before merging, recovering lost commits, and troubleshooting repository issues. It provides tools for managing complex Git workflows, collaborating on feature branches, and synchronizing divergent branches, making Git a more powerful tool for developers working in collaborative environments or managing complex projects. By mastering this skill, users can effectively clean up their Git history, recover from mistakes, and troubleshoot issues without losing progress, ensuring smoother and more efficient workflows.
Key features include the interactive rebase for editing commit history, cherry-picking commits between branches, bisecting commits to find bugs, using worktrees for parallel development, and leveraging reflog for recovery of lost commits. The skill also provides practical workflows for common tasks like preparing clean pull requests, applying hotfixes to multiple branches, and discovering problematic commits. Whether you're a solo developer managing your own repository or part of a team working on a large codebase, 'git-advanced-workflows' equips you with the tools to manage your Git environment more efficiently. Ideal for users looking to improve their proficiency with Git and streamline their development processes.
FAQ
How do I use interactive rebase in Git?
To use interactive rebase in Git, run 'git rebase -i HEAD~n', where 'n' is the number of commits you want to rebase. You'll then be prompted to choose actions for each commit, such as 'pick', 'squash', or 'drop', to modify your commit history.
What is the purpose of Git bisect?
Git bisect helps you identify the commit that introduced a bug by performing a binary search through your commit history. You mark commits as 'good' or 'bad', and Git checks out the intermediate commits to find the one that caused the issue.
Can I cherry-pick multiple commits at once?
Yes, you can cherry-pick multiple commits at once by specifying a commit range. Use the command 'git cherry-pick start_commit..end_commit' to apply a range of commits to your current branch.
What are Git worktrees and how do they help with development?
Git worktrees allow you to work on multiple branches simultaneously in separate directories without switching between them. This is useful for managing multiple features or bug fixes concurrently, without interrupting your main workflow.
What happens if I accidentally reset a commit in Git?
If you accidentally reset a commit, you can use Git's reflog to find the commit's hash and recover it. The reflog tracks all reference movements, including resets, so you can reset to the desired commit or create a new branch from it.
Install git-advanced-workflows
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
amurata/cc-tools