modern-git
Modern Git Commands
Purpose: This skill teaches AI agents to use modern, intuitive Git commands instead of legacy multi-purpose commands like git checkout. Modern commands are clearer, safer, and make code intent more obvious.
Core Principles
- Use
git switchfor branch operations - NOTgit checkout - Use
git restorefor file operations - NOTgit checkout -- - Use
git push --force-with-lease- NOTgit push --force - Be explicit about intent - Clear commands prevent mistakes
Quick Reference
Branch Operations → Use git switch
More from daleseo/git-skills
git-recovery
Safety practices and recovery techniques for Git. Covers reflog usage, reset vs revert strategies, recovering lost commits, undoing mistakes, and preventing data loss. Helps AI agents safely navigate Git operations and recover from errors.
10git-commits
Best practices for creating high-quality Git commits. Covers commit message conventions (Conventional Commits), atomic commits, staging strategies, and when to amend vs create new commits. Helps AI agents generate clean, meaningful commit history.
9git-collaboration
Collaboration workflows for team-based Git development. Covers pull request workflows, merge vs rebase strategies, conflict resolution, code review practices, and branch protection. Helps AI agents follow team conventions and collaborate effectively.
9