diff --git a/pages/common/copilot.md b/pages/common/copilot.md new file mode 100644 index 0000000000..8c9c781a24 --- /dev/null +++ b/pages/common/copilot.md @@ -0,0 +1,32 @@ +# copilot + +> Interact with GitHub Copilot. +> More information: . + +- Start interactive mode: + +`copilot` + +- Allow all file editing: + +`copilot --allow-tool write` + +- Resume the most recent session: + +`copilot --continue` + +- Resume a previous session using session picker: + +`copilot --resume` + +- Use a specific model: + +`copilot --model "{{gpt-5}}"` + +- Allow all Git commands except `git push`: + +`copilot --allow-tool 'shell(git:*)' --deny-tool 'shell(git push)'` + +- Execute a prompt directly without interactive mode, while allowing `copilot` to run any command: + +`copilot {{[-p|--prompt]}} "{{Fix the bug in main.js}}" --allow-all-tools` diff --git a/pages/common/gh-copilot.md b/pages/common/gh-copilot.md index 87ea25490a..e7b8fe754b 100644 --- a/pages/common/gh-copilot.md +++ b/pages/common/gh-copilot.md @@ -1,6 +1,7 @@ # gh copilot > Interact with GitHub Copilot. +> Note: Deprecated in favor of `copilot`. > More information: . - Suggest a command, given a description: