This is a bunch of code that I had backed up from high school. It should work, but I don't remember exactly what it does.
There is also a .pdf of a GitHub cheat sheet in this repository. I suggest copying it onto your machine, but do not take it out of the folder.