git-workflow
Skill14 starsChanged 9 months agoApache-2.0View on GitHub
Manage Git workflows including commits, branches, merges, and collaboration. Use when working with Git repositories, creating commits, managing branches, or resolving conflicts.
- Deletes or force-pushes
- Commits and pushes
187 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- KevinLoichot/everything-claude-codetheir own version, first seen Nov 29, 2026
- sodejm/copilot-operation-plugin-for-securitytheir own version, first seen Nov 29, 2026
- Megatron-HQ/Megatrontheir own version, first seen Nov 29, 2026
- dayfinggg/openai-codex-agent-skillstheir own version, first seen Nov 29, 2026
- Tibsfox/gsd-skill-creatortheir own version, first seen Nov 29, 2026
- amutaal122/ai-engineer-mastertheir own version, first seen Nov 29, 2026
Used with
Projects with it also use ci-cd-pipelines, architectural-proposals and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
harrissohail6Skillci-cd-pipelines
CI/CD pipeline design and implementation. Auto-activates when discussing deployment, automation, or pipelines.
Also in 6 projects that use this
Microsoft AzureSkillarchitectural-proposals
How to write comprehensive architectural proposals that drive alignment before code is written
Also in 4 projects that use this
Microsoft AzureSkillci-validation-gates
Defensive CI/CD patterns: semver validation, token checks, retry logic, draft detection — earned from v0.8.22
Also in 4 projects that use this
Galaxy-DawnSkillresults-report
This skill should be used when the user asks to "write an experiment report", "summarize experimental results", "do experiment retrospection", "write a results report", "写实验总结报告", "写实验复盘", or mentions turning completed experiment artifacts into a structured, decision-oriented research report. It assumes strict analysis should come from `results-analysis` first.
Also in 3 projects that use this
frostneySkilldelivery-wait
Provides deterministic, resumable GitHub transition waits used internally by delivery workflows. Use when another workflow must await CI, merge, tag, or release state without model heartbeats.
Also in 3 projects that use this
frostneySkillnative-nostalgia-stack
Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.
Also in 3 projects that use this
- +6 more from Azure
Other versions187 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- JohnJBoren/claude-skills-ecosystem★ 213% same
- harrissohail6/claude-code-config★ 111% same
- hallucinaut/skills★ 013% same
Wrote their own version · 184
- langfuse/langfuse★ 38ksame name
- modelcontextprotocol/typescript-sdk★ 14ksame name
- JetBrains/ideavim★ 10ksame name
- jokob-sk/NetAlertX★ 7.5ksame name
- netalertx/NetAlertX★ 7.5ksame name
- Galaxy-Dawn/claude-scholar★ 6.1ksame name
- github/gh-aw★ 5.7ksame name
- modelcontextprotocol/csharp-sdk★ 4.7ksame name
- antonbabenko/pre-commit-terraform★ 3.8ksame name
- github/squad★ 3.5ksame name
174 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository1,129 other files it gives its agents.
- userinterface-wiki/AGENTS.mdAGENTS.md
- aaronontheweb-dotnet-skillsSkill
- ab-test-setupSkill
- acquiring-disk-image-with-dd-and-dcflddSkill
- Agent BrowserSkill
- agent-browserSkill
- agent-browserSkill
- agent-configurationSkill
- agent-email-cliSkill
- agent-evaluationSkill
- agentic-development-principlesSkill
- agentic-workflowSkill
- agent-toolsSkill
- ai-image-generationSkill
- ai-video-generationSkill
- algorithmic-artSkill
- analytics-trackingSkill
- analyzing-active-directory-acl-abuseSkill
- analyzing-android-malware-with-apktoolSkill
- analyzing-api-gateway-access-logsSkill
- analyzing-apt-group-with-mitre-navigatorSkill
- analyzing-azure-activity-logs-for-threatsSkill
- analyzing-bootkit-and-rootkit-samplesSkill
- analyzing-browser-forensics-with-hindsightSkill
- analyzing-campaign-attribution-evidenceSkill
- analyzing-certificate-transparency-for-phishingSkill
- analyzing-cloud-storage-access-patternsSkill
- analyzing-cobalt-strike-beacon-configurationSkill
- analyzing-cobaltstrike-malleable-c2-profilesSkill
- analyzing-cobalt-strike-malleable-profilesSkill
- analyzing-command-and-control-communicationSkill
- analyzing-cyber-kill-chainSkill
- analyzing-disk-image-with-autopsySkill
- analyzing-dns-logs-for-exfiltrationSkill
- analyzing-docker-container-forensicsSkill
- analyzing-email-headers-for-phishing-investigationSkill
- analyzing-ethereum-smart-contract-vulnerabilitiesSkill
- analyzing-golang-malware-with-ghidraSkill
- analyzing-heap-spray-exploitationSkill
- analyzing-indicators-of-compromiseSkill
- analyzing-ios-app-security-with-objectionSkill
- analyzing-kubernetes-audit-logsSkill
- analyzing-linux-audit-logs-for-intrusionSkill
- analyzing-linux-elf-malwareSkill
- analyzing-linux-kernel-rootkitsSkill
- analyzing-linux-system-artifactsSkill
- analyzing-lnk-file-and-jump-list-artifactsSkill
- analyzing-macro-malware-in-office-documentsSkill
- analyzing-malicious-pdf-with-peepdfSkill
- analyzing-malicious-url-with-urlscanSkill
- analyzing-malware-behavior-with-cuckoo-sandboxSkill
- analyzing-malware-family-relationships-with-malpediaSkill
- analyzing-malware-persistence-with-autorunsSkill
- analyzing-malware-sandbox-evasion-techniquesSkill
- analyzing-memory-dumps-with-volatilitySkill
- analyzing-memory-forensics-with-lime-and-volatilitySkill
- analyzing-mft-for-deleted-file-recoverySkill
- analyzing-network-covert-channels-in-malwareSkill
- analyzing-network-flow-data-with-netflowSkill
- analyzing-network-packets-with-scapySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 166 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 371
Review before commit: Check what you're committing
- Distinctive: line 372
Use branches: Never commit directly to main
- Distinctive: line 374
Test before push: Run tests locally
- Distinctive: line 376
Delete merged branches: Keep repository clean
- Distinctive: line 377
Use .gitignore: Don't commit generated files
“Common” is measured: kept by at least 6 in 10 of the 166 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Workflow
When to use this skill
- Creating meaningful commit messages
- Managing branches
- Merging code
- Resolving conflicts
- Collaborating with team
- Git best practices
Instructions
Step 1: Branch management
Create feature branch:
# Create and switch to new branch
git checkout -b feature/feature-name
# Or create from specific commit
git checkout -b feature/feature-name <commit-hash>Naming conventions:
feature/description: New featuresbugfix/description: Bug fixeshotfix/description: Urgent fixesrefactor/description: Code refactoringdocs/description: Documentation updates
Step 2: Making changes
Stage changes:
# Stage specific files
git add file1.py file2.js
# Stage all changes
git add .
# Stage with patch mode (interactive)
git add -pCheck status:
# See what's changed
git status
# See detailed diff
git diff
# See staged diff
git diff --stagedStep 3: Committing
Write good commit messages:
git commit -m "type(scope): subject
Detailed description of what changed and why.
- Change 1
- Change 2
Fixes #123"Commit types:
feat: New featurefix: Bug fixdocs: Documentationstyle: Formatting, no code changerefactor: Code refactoringtest: Adding testschore: Maintenance
Example:
git commit -m "feat(auth): add JWT authentication
- Implement JWT token generation
- Add token validation middleware
- Update user model with refresh token
Closes #42"Step 4: Pushing changes
# Push to remote
git push origin feature/feature-name
# Force push (use with caution!)
git push origin feature/feature-name --force-with-lease
# Set upstream and push
git push -u origin feature/feature-nameStep 5: Pulling and updating
# Pull latest changes
git pull origin main
# Pull with rebase (cleaner history)
git pull --rebase origin main
# Fetch without merging
git fetch originStep 6: Merging
Merge feature branch:
# Switch to main branch
git checkout main
# Merge feature
git merge feature/feature-name
# Merge with no fast-forward (creates merge commit)
git merge --no-ff feature/feature-nameRebase instead of merge:
# On feature branch
git checkout feature/feature-name
# Rebase onto main
git rebase main
# Continue after resolving conflicts
git rebase --continue
# Abort rebase
git rebase --abortStep 7: Resolving conflicts
When conflicts occur:
# See conflicted files
git status
# Open files and resolve conflicts
# Look for markers:
<<<<<<< HEAD
Current branch code
=======
Incoming branch code
>>>>>>> feature-branch
# After resolving
git add <resolved-files>
git commit # For merge
git rebase --continue # For rebaseStep 8: Cleaning up
# Delete local branch
git branch -d feature/feature-name
# Force delete
git branch -D feature/feature-name
# Delete remote branch
git push origin --delete feature/feature-name
# Clean up stale references
git fetch --pruneAdvanced workflows
Interactive rebase
# Rebase last 3 commits
git rebase -i HEAD~3
# Commands in editor:
# pick: use commit
# reword: change commit message
# edit: amend commit
# squash: combine with previous
# fixup: like squash, discard message
# drop: remove commitStashing changes
# Stash current changes
git stash
# Stash with message
git stash save "Work in progress on feature X"
# List stashes
git stash list
# Apply most recent stash
git stash apply
# Apply and remove stash
git stash pop
# Apply specific stash
git stash apply stash@{2}
# Drop stash
git stash drop stash@{0}
# Clear all stashes
git stash clearCherry-picking
# Apply specific commit
git cherry-pick <commit-hash>
# Cherry-pick multiple commits
git cherry-pick <hash1> <hash2> <hash3>
# Cherry-pick without committing
git cherry-pick -n <commit-hash>Bisect (finding bugs)
# Start bisect
git bisect start
# Mark current as bad
git bisect bad
# Mark known good commit
git bisect good <commit-hash>
# Git will checkout commits to test
# Test and mark each:
git bisect good # if works
git bisect bad # if broken
# When found, reset
git bisect resetExamples
Example 1: Feature development workflow
# 1. Create feature branch
git checkout main
git pull origin main
git checkout -b feature/user-profile
# 2. Make changes
# ... edit files ...
# 3. Commit changes
git add src/profile/
git commit -m "feat(profile): add user profile page
- Create profile component
- Add profile API endpoints
- Add profile tests"
# 4. Keep up to date with main
git fetch origin
git rebase origin/main
# 5. Push to remote
git push origin feature/user-profile
# 6. Create Pull Request on GitHub/GitLab
# ... after review and approval ...
# 7. Merge and cleanup
git checkout main
git pull origin main
git branch -d feature/user-profileExample 2: Hotfix workflow
# 1. Create hotfix branch from production
git checkout main
git pull origin main
git checkout -b hotfix/critical-bug
# 2. Fix the bug
# ... make fixes ...
# 3. Commit
git add .
git commit -m "hotfix: fix critical login bug
Fixes authentication bypass vulnerability
Fixes #999"
# 4. Push and merge immediately
git push origin hotfix/critical-bug
# After merge:
# 5. Cleanup
git checkout main
git pull origin main
git branch -d hotfix/critical-bugExample 3: Collaborative workflow
# 1. Update main branch
git checkout main
git pull origin main
# 2. Create feature branch
git checkout -b feature/new-feature
# 3. Regular updates from main
git fetch origin
git rebase origin/main
# 4. Push your work
git push origin feature/new-feature
# 5. If teammate made changes to your branch
git pull origin feature/new-feature --rebase
# 6. Resolve any conflicts
# ... resolve conflicts ...
git add .
git rebase --continue
# 7. Force push after rebase
git push origin feature/new-feature --force-with-leaseBest practices
- Commit often: Small, focused commits
- Meaningful messages: Explain what and why
- Pull before push: Stay updated
- Review before commit: Check what you're committing
- Use branches: Never commit directly to main
- Keep history clean: Rebase feature branches
- Test before push: Run tests locally
- Write descriptive branch names: Easy to understand
- Delete merged branches: Keep repository clean
- Use .gitignore: Don't commit generated files
Common patterns
Undo last commit (keep changes)
git reset --soft HEAD~1Undo last commit (discard changes)
git reset --hard HEAD~1Amend last commit
# Change commit message
git commit --amend -m "New message"
# Add files to last commit
git add forgotten-file.txt
git commit --amend --no-editView history
# Detailed log
git log
# One line per commit
git log --oneline
# With graph
git log --oneline --graph --all
# Last 5 commits
git log -5
# Commits by author
git log --author="John"
# Commits in date range
git log --since="2 weeks ago"Find commits
# Search commit messages
git log --grep="keyword"
# Search code changes
git log -S "function_name"
# Show file history
git log --follow -- path/to/fileTroubleshooting
Accidentally committed to wrong branch
# 1. Create correct branch from current state
git branch feature/correct-branch
# 2. Reset current branch
git reset --hard HEAD~1
# 3. Switch to correct branch
git checkout feature/correct-branchNeed to undo a merge
# If not pushed yet
git reset --hard HEAD~1
# If already pushed (creates revert commit)
git revert -m 1 <merge-commit-hash>Recover deleted branch
# Find lost commit
git reflog
# Create branch from lost commit
git checkout -b recovered-branch <commit-hash>Sync fork with upstream
# Add upstream remote
git remote add upstream https://github.com/original/repo.git
# Fetch upstream
git fetch upstream
# Merge upstream main
git checkout main
git merge upstream/main
# Push to your fork
git push origin mainGit configuration
User setup
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"Aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global alias.lg 'log --oneline --graph --all'Editor
git config --global core.editor "code --wait" # VS Code
git config --global core.editor "vim" # VimReferences
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

