git-guard

Denies Bash git commands that discard uncommitted work (checkout --, restore, reset --hard, clean -f)

hughescr 1 on hughescr/claude-code-config

Install

Claude Code
/plugin marketplace add hughescr/claude-code-config
/plugin install git-guard@craigs-claude-plugins

Run both lines inside Claude Code.

Hooks into

  • Tool calls

More git mods

All git mods
Repo stars
1
Repo forks
0
License
None given
Last commit
Checked
16ef4b8,
Source on GitHub