gh gist edit 1234 --remove old.txt

Category: GitHub CLI

gh gist edit 1234 --remove old.txt

Remove a file from a gist

--remove old.txt deletes that file from gist 1234, updating the gist's content set without recreating it. Gist edits are recorded in the gist's revision history. Pair --add and --remove in one command to restructure a gist in a single step.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.