Skip to content
Back to skills

Modern Git

ASecurity

Modern Git workflows, best practices, and commands. Use when the user asks about Git branch management (git switch vs checkout), file restoration (git restore), fixup commits, autosquash rebasing, git worktrees, rerere, force-with-lease, repository cleanup (git clean, stale branches, bloat analysis), history navigation (revision syntax, range notation, pickaxe search), recommended global git config, or GitButler and the but CLI.

  • 67 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 12, 2026
toolsgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add Jamie-BitFlight/claude_skills --skill modern-git --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Modern Git?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Modern Git
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jamie-bitflight-modern-git/badge)](https://www.skillsdirectory.com/skills/jamie-bitflight-modern-git)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: modern-git
description: Modern Git workflows, best practices, and commands. Use when the user asks about Git branch management (git switch vs checkout), file restoration (git restore), fixup commits, autosquash rebasing, git worktrees, rerere, force-with-lease, repository cleanup (git clean, stale branches, bloat analysis), history navigation (revision syntax, range notation, pickaxe search), recommended global git config, or GitButler and the but CLI.
---

# Modern Git

Full reference: [./references/git-workflows.md](./references/git-workflows.md) — read it when answering any question this skill covers.

## Quick Navigation

| Topic | Section |
|---|---|
| `git switch` / `git restore` (replace `checkout`) | §1 |
| Topic branches, throw-away branches, merge-upwards | §2 |
| Fixup commits, autosquash, worktrees | §3 |
| `rerere`, native GitButler alternatives | §4 |
| Recommended global config | §5 |
| `--force-with-lease`, pickaxe, `git maintenance` | §6 |
| Repo cleanup, bloat analysis, stash, `.mailmap` | §7 |
| Command cheat sheet | §8 |
| Revision syntax, range notation, reflog | §9 |
| GitButler desktop + `but` CLI install | §10 |

Files in this skill

  • SKILL.md1.1 KB
  • references/git-workflows.md11.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…