mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
35 lines
760 B
Plaintext
35 lines
760 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# gh copilot
|
|
|
|
> Interact with GitHub Copilot.
|
|
> Note: Deprecated in favor of `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`
|