Github provides no facility to do this via the UI. This is sad, because it would be extremely useful in order to draft something before publishing it. It would also be trivial for them to implement. Never mind; here's how to do it manually:
- Get the "Clone this Gist" text from the left-hand side of the private Gist, e.g.
https://gist.github.com/b9cc265982870c091a1e.git
, and extract the IDb9cc265982870c091a1e
. - Go to https://gist.github.com/ and create a dummy new public Gist.
- Get the "Clone this Gist" text from the left-hand side, e.g.
https://gist.github.com/8270253.git
, and extract the ID8270253
. git clone [email protected]:b9cc265982870c091a1e tmp-dir && cd tmp-dir && git push -f [email protected]:8270253.git
Now, i could make my gist public by going into gist Edit page. There is a button named
Make Public