Sitemap

Git After It

3 min readJul 19, 2017

--

I probably should have preemptively apologized for my regular and terrible use of puns — an inclination I’ve inherited from my father — which will inevitably continue to make regular appearances on this blog. I know they’re not everyone’s bag, so will understand 100% if their inclusion here inspires any readers to click the ‘unfollow’ button.

Today’s submission is coming in a little earlier as I decided to take a quick break from working on my daily/weekly projects to avoid hitting a wall. Instead, I’m taking a little breather over here — which, admittedly, does require focus, but also doesn’t require functions. Going to try to be strict with the time parameters I’ve set because I know it’s all too easy to get pulled down a rabbit hole, devouring posts from all the rad Medium bloggers that I have queued up to read.

This morning, we jumped straight into a continuation of yesterday’s lessons on API’s and then moved into a (related) discussion on Git and GitHub.

We’ve been using GitHub — and thus, Git — since the first day of class, but until now, haven’t gone much beyond a loose understanding of its essential functions and capacities. I don’t believe I’ve touched on this before, and though I know there are plenty of other outlets available for pulling this info, I’ll still do a quick sum-up here (if nothing else, it’s helpful to me to reiterate what I’ve learned!).

Press enter or click to view image in full size
Git branching model diagram taken from ‘A Successful Git Branching Model’ by Vincent Driessen

Git is an extremely popular open-source version control system that — like other version control systems — allows you to work on code within programs of all sizes in collaborative groups of developers in a structured, traceable, and controlled way. It allows you to track revisions and keep running logs of every change you’ve made to your code over time. It’s a great resource for working in teams — whether in your place of work or school, and is a near-essential tool for working with folks all over the world on open-source or organizational projects.

Get Emily Deans’s stories in your inbox

Join Medium for free to get updates from this writer.

GitHub on the other hand, is basically a website/service where developers can store their projects, share code, and collaborate with other programmers to solve problems and create better programs. The GitHub platform is much more user-friendly (and aesthetically pleasing) than working running Git exclusively via your computer’s terminal (see image below), and we use GitHub every single day to submit assignments.

Press enter or click to view image in full size
Terminal layout on left. GitHub user interface on right.

Up to this point, we’ve only used GitHub to work on independent projects in our own private repositories, but today‘s focus was on how to use Git in a team context and the best practices for doing so.

This included group and partner work that involved creating organizations and forking repositories into the new orgs. Then we played around with creating branches and intentionally setting off merge conflicts within our repositories so that we could practice resolving conflicts and then merging the approved code into our master branch (i.e., master code document).

Song of the Day: ‘Heartbreak Summer’ by RAC and K.Flay

--

--

Emily Deans
Emily Deans

Written by Emily Deans

Washington, D.C.-based web developer. Former cheesemaker/food-systems nerd and current nerd in general.