I have been trying to learn git, so I gave myself a number of challenges. This challenge was to have all of my Gists in one git controlled directory called 'gist', without having to merge all of them checked out.
Do a git init to init gist directory
$ mkdir gist
$ cd gist
$ git initNext I will set up a remote for a few of my favorite gists
$ git remote add rServerLess https://gist.github.com/a5ef486532155fd99795.git
$ git remote add rGistApi https://gist.github.com/fb5a7e4b55e323b83745.git
$ git remote add rPoshTemp https://gist.github.com/5775c7beef50acc619b4.gitNext I need to fetch the master branch for each remote
$ git fetch rServerLess
$ git fetch rGistApi
$ git fetch rPoshTempNow that I have all the remotes, I will create a branch for each
$ git checkout -b bServerLess rServerLess/master
$ git checkout -b bGistApi rGistApi/master
$ git checkout -b bPoshTemp rPoshTemp/masterNow lets do some work. I'll add a file to one of the gists
$ git checkout bPoshTemp
$ git pull rPoshTemp master
$ echo d4n13 > AUTHORS
$ git add AUTHORS
$ git commit -m "give myself credit"
$ git push rPoshTemp bPoshTemp:master