I have a gist which is managed by an IDE extension. Now I want to have two different setups, starting with the current setup as base. How do I duplicate my existing gist? There doesn't seem to be any relevant option on GitHub.
Gists are basically git repositories with all files at root directory. Unfortunately there is no way to easily duplicate a gist through Github UI. We need to go through these steps:
cd /tmp
git clone [email protected]:<source-gist-id>.git source-gist
cd source-gist
git push --force [email protected]:<destination-gist-id>.git