Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code
Quiz: An ask rule and an allow from another file
In ~/.claude/settings.json you have the rule allow Bash(git push *), and in the project .claude/settings.json the rule ask Bash(git push *). What happens when Claude wants to run git push?
Answer options
- Claude Code asks for consent, because ask is checked before allow, regardless of the file
- It pushes without asking, because the user settings are yours
- It pushes without asking, because allow and ask cancel each other
- It rejects the command, because the two rules contradict each other
You can check the correct answer by solving this task in the CodeWorlds game.