Agent Skill
2/7/2026git-workflow
Use for all Git operations, version control workflows, and repository management. Handles commits, branches, merges, releases.
F
funkymonkeymonk
1GitHub Stars
1Views
npx skills add funkymonkeymonk/repo-template
SKILL.md
| Name | git-workflow |
| Description | Use for all Git operations, version control workflows, and repository management. Handles commits, branches, merges, releases. |
name: git-workflow description: Use for all Git operations, version control workflows, and repository management. Handles commits, branches, merges, releases.
Git Workflow Skill
Core Operations
- Check status:
git status - Stage changes:
git add .or specific files - Commit changes:
git commit -m "message" - Push changes:
git push - Create branches:
git checkout -b feature-name - Merge branches:
git merge branch-name
Commit Workflow
When making commits:
- Check current state: Run
git statusto see changes - Review changes: Use
git diffto see what will be committed - Stage changes: Use
git addto stage relevant files - Create commit: Write descriptive commit messages following project conventions
- Push changes: Send to remote repository
Branch Management
Feature Branch Workflow
# Create new feature branch
git checkout -b feature/new-feature
# Work on feature...
git add .
git commit -m "Add new feature implementation"
# Push branch
git push -u origin feature/new-feature
Merge Process
# Switch to main branch
git checkout main
git pull
# Merge feature branch
git merge feature/new-feature
# Push merged changes
git push
# Clean up feature branch (optional)
git branch -d feature/new-feature
Release Workflow
- Update version numbers if needed
- Create release branch or tag
- Update changelog
- Create release commit
- Tag release:
git tag v1.0.0 - Push tags:
git push --tags
Common Issues & Solutions
Merge Conflicts
- Identify conflicting files with
git status - Open files and resolve conflicts
- Mark as resolved:
git add <file> - Complete merge:
git commit
Undo Operations
- Unstage file:
git reset HEAD <file> - Undo last commit:
git reset --soft HEAD~1 - Undo commit completely:
git reset --hard HEAD~1
Repository Maintenance
- Clean up branches:
git branch -d branch-name - Prune remote branches:
git remote prune origin - Check history:
git log --oneline --graph
Integration with Other Skills
This skill often works with:
- taskfile: For automated git tasks
- format: For code formatting before commits
- project-specific workflows: For repository-specific processes
Skills Info
Original Name:git-workflowAuthor:funkymonkeymonk
Download