Tighten git push guidance to require terminal-only execution

Update the git guide so the assistant does not execute git push commands when credentials or SSH key passphrases might be required. Instead, the assistant must show the exact push command and direct the user to run it directly in the terminal.

Keep the existing rule that passwords and passphrases must not be accepted through chat and that password handoff requests must be refused.
This commit is contained in:
2026-03-20 21:31:10 -04:00
parent 08eebad3f9
commit 08b2ab3104

View File

@@ -16,7 +16,8 @@ This file records repo-specific git workflow preferences for `/home/aw/code/cds`
## Push Requests
- When the user asks to push, use `git push -u origin main` by default unless the user explicitly asks for a different remote or branch.
- If `git push -u origin main` or any git command prompts for credentials or an SSH key passphrase, stop at the prompt and tell the user to enter the secret directly in the terminal instead of sending it in chat.
- Do not execute `git push -u origin main` or any other git push command from the assistant when credentials or an SSH key passphrase might be required.
- Instead, show the exact push command and tell the user to run it directly in the terminal.
- Do not accept passwords or passphrases through chat for git operations.
- If the user asks the assistant to take the password/passphrase handoff, refuse and direct the user to complete the prompt from the terminal.