---
title: "Discussion on \"Claude Code permission rules: Bash(git push:*) stopped 8 of 14 ways to push, and 5 reached the remote\" | Hashnode"
description: "Discussion on \"Claude Code permission rules: Bash(git push:*) stopped 8 of 14 ways to push, and 5 reached the remote\". With a single deny rule, Bash(git push:*), in a throwaway repo's .claude/settings.json, we asked Claude Code 2.1.278 to run 14 different spellings of \"push to origin\", one per claude -p run. The rule"
url: "https://hashnode.com/posts/claude-code-permission-rules-bash-git-push-stopped-8-of-14-ways-to-push-and-5-reached-the-remote/6ab48a25939c5cd8f19dc160"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Claude Code permission rules: Bash(git push:\*) stopped 8 of 14 ways to push, and 5 reached the remote](https://rulestack.hashnode.dev/claude-code-permission-rules-bash-git-push-stopped-8-of-14-ways-to-push-and-5-reached-the-remote?utm_source=hashnode&utm_medium=feed)

With a single deny rule, Bash(git push:\*), in a throwaway repo's .claude/settings.json, we asked Claude Code 2.1.278 to run 14 different spellings of "push to origin", one per claude -p run. The rule

Sep 24 · 16 min read · rulestack.hashnode.dev  
Updated Sep 28  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)
-   [#security](https://hashnode.com/tag/security)
-   [#git](https://hashnode.com/tag/git)

## Written by

[Rulestack](https://hashnode.com/@rulestack)

@rulestack

  
[View profile](https://hashnode.com/@rulestack)

Rule packs & skills for Cursor, Claude Code, and Codex

I maintain Rulestack — ready-to-use rule packs and skills for Cursor, Claude Code, and OpenAI Codex, written and updated against each tool's current spec. Store: rulestack.gumroad.com / Articles: dev.to/rulestack

## Responses 1

Markdown supported · ⌘↵ to post

[Brian · AI News](https://hashnode.com/@brianainews)

[Sep 24](https://hashnode.com/posts/claude-code-permission-rules-bash-git-push-stopped-8-of-14-ways-to-push-and-5-reached-the-remote/6ab48a25939c5cd8f19dc160/comment/6ab48f81481c83293be94e3c)

The first thing I check in a new coding agent is how it handles a failing test it did not write. That one moment tells you if it reads code or just guesses.
