How can I change a secret Gist to public?

jianfeng picture jianfeng · Feb 6, 2013 · Viewed 13.6k times · Source

I upload a Gist code and set it to be secret.

Now I want to change the gist to public, but I can't find how to set it public...

Could anyone help me about that?

Answer

VonC picture VonC · May 10, 2014

I upload a Gist code and set it to be secret.
Now I want to change the gist to public, but I can't find how to set it publi

Since May, 9th 2014, it is possible: "Change the visibility of your Gists"

You can change the visibility of your Gists whenever you want.

When editing a Gist you'll now notice a new option to toggle the visibility between Public and Secret.
The URL for your Gist will never change, just its visibility.

https://cloud.githubusercontent.com/assets/222/2894242/b9be0cd4-d550-11e3-91e8-415b178fb561.gif


As commented by GiDo though, since 2016:

you can only make public a gist that was previously private.
When it is public it will stay public.