GitHub CLI
Gists Commands
Share code snippets with GitHub Gists. Learn to create, edit, and manage gists from the command line for quick code sharing and documentation.
6 commands
Pro Tips
Create gists from clipboard or stdin: 'cat file.js | gh gist create -f file.js'
Use 'gh gist clone gist-id' to get a local copy you can edit and push back.
Common Mistakes
Public gists are indexed by search engines. Don't share sensitive information in public gists.