Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save zmwangx/bc79e7d95d82c2f5e0976975b6e1c6d6 to your computer and use it in GitHub Desktop.

Select an option

Save zmwangx/bc79e7d95d82c2f5e0976975b6e1c6d6 to your computer and use it in GitHub Desktop.
No longer able to make public gists private — message to GitHub

We've been able to toggle visibility of gists since 2014 (https://github.com/blog/1837-change-the-visibility-of-your-gists), but I just noticed that I can no longer make public gists private. That is, when I edit private gists I still see the "Make Public" button, but not the other way round — there's only a "Delete" button when I edit public gists; the "Make Secret" which should be next to it (as shown in the screencast in the linked blog post) is nowhere to be found. I made a screenshot and a screencast demonstrating the issue, both of which are attached. Could you please confirm this issue? Was this an intentional change, and why? Thank you for your attention.

gist-unable-to-make-secret

![gist-unable-to-make-secret](https://cloud.githubusercontent.com/assets/4149852/16898407/c76db210-4c0b-11e6-9108-0450f1edebb4.gif)

Hi Zhiming,

Thanks for writing in!

We had to remove that functionality because it was misleading. Turning a public gist into a secret one doesn't change the URL, which means anybody with the old public URL can still access it.

We may consider improving this in the future, but for now, you will have to delete the public gist, and create a new secret one with the same content.

Creating a new secret gist gives it a new unique URL. You can share that URL with just the people you want to be able to see the gist.

Please let me know if you have any other issues!

Cheers,
Antonio
GitHub Support

@theodric
Copy link
Copy Markdown

Please put the button back and add a warning message instead.

Whom do you think you are addressing?

THE QUEEN OF ENGLAND, of course

@sahilrajput03
Copy link
Copy Markdown

Please delete this gist. LOL

@Bruno-366
Copy link
Copy Markdown

+1

@Vextrov
Copy link
Copy Markdown

Vextrov commented Aug 1, 2023

+1 please add a button to switch gist privacy with a function that will regenerate file link and show a warning message indicating that link will be changed

@mamiu
Copy link
Copy Markdown

mamiu commented Sep 8, 2023

+1

@juanfrajberg
Copy link
Copy Markdown

+1

@jpapazian2000
Copy link
Copy Markdown

+1

@Keshyu
Copy link
Copy Markdown

Keshyu commented Nov 17, 2023

+1

Copy link
Copy Markdown

ghost commented Dec 13, 2023

+1

@CodeShakingSheep
Copy link
Copy Markdown

+1

@mrtnvgr
Copy link
Copy Markdown

mrtnvgr commented Feb 26, 2024

+1!

@grishatsuker
Copy link
Copy Markdown

+1

@Assassin9520
Copy link
Copy Markdown

+1

@phoriah
Copy link
Copy Markdown

phoriah commented Apr 11, 2024

+1

@jovialcore
Copy link
Copy Markdown

+1

@AlexeyGogolev
Copy link
Copy Markdown

+1

@gabriel-vanca
Copy link
Copy Markdown

+1

@wastu01
Copy link
Copy Markdown

wastu01 commented Oct 2, 2024

+1

@milimarg
Copy link
Copy Markdown

+1

@tientq64
Copy link
Copy Markdown

+1

@jrj-d
Copy link
Copy Markdown

jrj-d commented Oct 28, 2024

+1

@adamatti
Copy link
Copy Markdown

+1

@gabriel-vanca
Copy link
Copy Markdown

+1

@quietcactus
Copy link
Copy Markdown

+1

@tientq64
Copy link
Copy Markdown

+1

@ayamdobhal
Copy link
Copy Markdown

+1

@slaszt
Copy link
Copy Markdown

slaszt commented Jan 8, 2025

+1

  1. Display a warning that a gist URL is not regenerated, or
  2. Regenerate the URL of public gists made secret

@dxrcy
Copy link
Copy Markdown

dxrcy commented May 25, 2025

+1

@gabriel-vanca
Copy link
Copy Markdown

+1

@TomW-Skyline
Copy link
Copy Markdown

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment