Member-only story
Git for absolute beginners: understanding Git with the help of a video game
Get an intuition about how to use git with a classic RPG as an analogy
For beginners Git can be a bit intimidating. There are all these terms (pull, fetch, commit, push, remote, origin), the dreaded merge conflicts, and the ever-present fear of typing in a wrong command and destroying all your code.
The goal of this article is not to list a detailed explanation on how to use the Git commands; there are many article that already do that and there’s the Git docs too. Our goal is to get an intuition for the most important functionalities of Git so that you manage your code the right way.
To do so we’ll go through the most important git commands, show a definition and a command and then explain it using an analogy that almost everyone understands: an RPG video game.
Since this article will list some git commands; check out this article if you’re unfamiliar with using a terminal.
The basics
Let’s first dive into the absolute basics of git: how to set it up, and use the most basic commands.