Gist is one of the most efficient way to share code snippets, single files and full applications with other people. However one disadvantage of gist is that you can’t share directories, but this is not a major issue considering gist is primarily used to share code snippets.
If you want to make local changes to a gist and push them up to the web, you can clone a gist, make changes and then make commits. It is exactly same process as you would with any Git repository.
Let us look at how to clone gist repository using https
Go to gist repository and get https link. Please find below image to see howto get the https link.
Using following command to clone repository
$ git clone https://gist.github.com/820c117b75d52514b2e58008be07a6eb.git Cloning into '820c117b75d52514b2e58008be07a6eb'... remote: Enumerating objects: 44, done. remote: Total 44 (delta 0), reused 0 (delta 0), pack-reused 44 Unpacking objects: 100% (44/44), done. Checking connectivity... done.
That is it. You are done. You can cd into the folder and check the files.