Skip to content

Commit 7e0e8de

Browse files
authored
copilot: add page; gh-copilot: add deprecation note (#19640)
1 parent 2faa1ee commit 7e0e8de

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

pages/common/copilot.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# copilot
2+
3+
> Interact with GitHub Copilot.
4+
> More information: <https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli>.
5+
6+
- Start interactive mode:
7+
8+
`copilot`
9+
10+
- Allow all file editing:
11+
12+
`copilot --allow-tool write`
13+
14+
- Resume the most recent session:
15+
16+
`copilot --continue`
17+
18+
- Resume a previous session using session picker:
19+
20+
`copilot --resume`
21+
22+
- Use a specific model:
23+
24+
`copilot --model "{{gpt-5}}"`
25+
26+
- Allow all Git commands except `git push`:
27+
28+
`copilot --allow-tool 'shell(git:*)' --deny-tool 'shell(git push)'`
29+
30+
- Execute a prompt directly without interactive mode, while allowing `copilot` to run any command:
31+
32+
`copilot {{[-p|--prompt]}} "{{Fix the bug in main.js}}" --allow-all-tools`

pages/common/gh-copilot.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# gh copilot
22

33
> Interact with GitHub Copilot.
4+
> Note: Deprecated in favor of `copilot`.
45
> More information: <https://github.com/github/gh-copilot#usage>.
56
67
- Suggest a command, given a description:

0 commit comments

Comments
 (0)