GH-GIST-EDIT(1) GitHub CLI manual GH-GIST-EDIT(1)

gh-gist-edit - Edit one of your gists

gh gist edit {<id> | <url>} [<filename>] [flags]

Add a new file to the gist
New description for the gist
Select a file to edit
Remove a file from the gist

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

gh-gist(1)

Jul 2025