mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
gh-copilot: add page (#18146)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# gh copilot
|
||||
|
||||
> Interact with GitHub Copilot.
|
||||
> More information: <https://github.com/github/gh-copilot#usage>.
|
||||
|
||||
- Suggest a command, given a description:
|
||||
|
||||
`gh copilot suggest "{{Install git}}"`
|
||||
|
||||
- Suggest a Git command:
|
||||
|
||||
`gh copilot suggest {{[-t|--target]}} git "{{Undo the most recent local commits}}"`
|
||||
|
||||
- Explain a command:
|
||||
|
||||
`gh copilot explain "{{traceroute example.com}}"`
|
||||
|
||||
- Generate shell-specific aliases for Bash:
|
||||
|
||||
`echo 'eval "$(gh copilot alias -- bash)"' >> ~/.bashrc`
|
||||
|
||||
- Generate shell-specific aliases for Zsh:
|
||||
|
||||
`echo 'eval "$(gh copilot alias -- zsh)"' >> ~/.zshrc`
|
||||
|
||||
- Configure options:
|
||||
|
||||
`gh copilot config`
|
||||
Reference in New Issue
Block a user