
Thanks to Aquabird Consulting for having this awesome and relevant image!
I have to write a code sample for someone and since all the cool kids are using Github, I figured now was as good a time as any to make myself get somewhat decent at it.
What is this git?
Great question! I was introduced to git during my data structures class. All of our code was written to a git repository hosted by the professor. One of the most awesome things about it was when we completed an assignment, it was automagically graded! However, I honestly don’t know a lot about git other than the times I used it for that class.
What I do know is that with git you can: (1) commit a file as many times as you want and when you commit a file that means (2) you can recover older versions of that file. In addition, git is good for collaborating on code; I believe it is especially useful for that.
And Github?
This is a place where you can host your code for free as long as it’s public. If you want to do something privately, you have to pay for the privilege.
So far, I have created a Github account, followed their instructions for getting a ssh key and with a few tweaks, set up my first repository! The instructions provided were most excellent, so I won’t go through it myself.
I will however need this handy reference since I can’t recall all the commands anymore. One last thing, in addition to getting git make sure to get the vim text editor; I found using vi to be a pain in the behind. On Ubuntu, you can easily find both in the Synaptic Package Manager.