Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit a786666

Browse files
committed
docs: [#10] add explicit git permission requirements to AI Assistant guidelines
- Add clear prohibition of state-changing git actions without explicit permission - List allowed git actions that can be performed without permission (read-only) - List actions requiring explicit permission (all state-changing operations) - Add best practice guidance to always ask before committing changes - Prevents AI assistants from committing/pushing without user consent
1 parent 9fbf7bd commit a786666

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/copilot-instructions.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,38 @@ When providing assistance:
301301
- Provide clear explanations and documentation
302302
- Consider the migration to Hetzner infrastructure in suggestions
303303

304+
#### Git Actions and Permission Requirements
305+
306+
**IMPORTANT**: Git actions that change repository state require explicit permission:
307+
308+
- **NEVER** commit changes unless explicitly asked to do so
309+
- **NEVER** push changes to remote repositories without permission
310+
- **NEVER** merge branches or create pull requests without explicit instruction
311+
- **NEVER** reset, revert, or modify git history without explicit permission
312+
- **NEVER** create or delete branches without explicit instruction
313+
314+
**Allowed git actions without permission:**
315+
- `git status` - Check working tree status
316+
- `git diff` - Show changes between commits/files
317+
- `git log` - View commit history
318+
- `git show` - Display commit information
319+
- `git branch` - List branches (read-only)
320+
321+
**Actions requiring explicit permission:**
322+
- `git add` - Stage changes for commit
323+
- `git commit` - Create new commits
324+
- `git push` - Push changes to remote
325+
- `git pull` - Pull changes from remote
326+
- `git merge` - Merge branches
327+
- `git rebase` - Rebase branches
328+
- `git reset` - Reset working tree or commits
329+
- `git revert` - Revert commits
330+
- `git checkout` - Switch branches or restore files
331+
- `git branch -d/-D` - Delete branches
332+
- `git tag` - Create or delete tags
333+
334+
**Best Practice**: Always ask "Would you like me to commit these changes?" before performing any git state-changing operations.
335+
304336
## 📖 Additional Resources
305337

306338
- **Torrust Tracker**: <https://github.com/torrust/torrust-tracker>

0 commit comments

Comments
 (0)