0

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.

0

1 Answer 1

3

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:

  1. Create the destination gist: Add random stuff as part of it, we just need a gist id.
  2. Clone source gist & force push to destination gist:
    cd /tmp
    git clone [email protected]:<source-gist-id>.git source-gist
    cd source-gist
    git push --force [email protected]:<destination-gist-id>.git
    
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.