This can be used to create a gist with the contents of a directory, using a custom "ignore" file to filter out unwanted files.
The reason someone might want to do this is if they want to snapshot a directory for future reference but doesn't want to go through the hassle of setting up a full-fledged repository for it.
To use this, in a git repo create your .gistignore
file, then run the commands in snapshot.sh
.
To download a gist that was created in this way, run the commands in clone.sh
.