Beginner’s Monday: The Series. Introduction to Git.

git-logo

It’s a brand new week! and we begin with Beginner’s Monday: The Series. But what exactly is Beginner’s Monday: The Series?

Good Question.

When I started out programming, I taught myself quite a number of things, I still do. It is easy, there’s YouTube, StackOverflow, Google, Blogs, Websites e.t.c where I can easily grab information and implement it, of course tweaking it. But before I got to that stage where I knew where to look and how to look, I was at a stage where I did not even know what to look for, leave alone looking for it. It was until after I received some guidance that I began familiarizing myself with some important concepts.

This story is what inspires Beginner’s Monday: The Series. This series is for all the complete newbies who do not know much about programming but are still keeping it strong in the game :) It will be to introduce you to some concepts you don’t even know you need to know, explain concepts you may have heard being thrown around and have no idea what they mean and bring your attention to things you may not know existed but are real helpers for beginners. In a nutshell, Beginners Monday is a guidance platform for everyone starting out as a coder with no experience.
And with that, let’s jump to our first topic:

Version Control: Introduction to Git.


What is Version Control? As a developer, this is the first thing you need to know, before you even write your first line of code.

Version Control is a system that records changes you have made to a file, manages them and helps you to recall previous versions of the file(s). As a developer, your job is a cycle. You:

  1. Create a file.
  2. Write content.
  3. Save it.
  4. Open it again.
  5. Make changes.
  6. Save again.

As you keep saving these new changes, these are new different versions of the content you started with. If you find yourself saving files like this:  indexone.html and indextwo.html as a change of the previous file, that’s how you know you need Version Control. With Version Control, you can revert to previous edits, review previous edits and also delete edits you do not need.

 

Version Control Software.


There are different versions of Version Control Softwares, but for this tutorial I will use git.

Github vs Git.


The above are terms you may or may not have heard. What are the key differences between these two?

First, these two terms do not mean the same thing, do not use them interchangeably.

Secondly, Git is the Version Control software while Github is simply a repository or ‘storage’ where you store the changes you’ve made to your files.

Installing on Windows:

  • Head over to http://git-scm.com/download/win
  • Choose the setup according to your OS i.e 64-bit/32-bit
  • Double-click on the downloaded setup file and follow the steps.
  • Leave everything as it is during the setup wizard.
  • Finish.

Installing on Mac:

  • Head over to http://git-scm.com/downloads
  • Download the .dmg file
  • Open with installer and follow the intsructions.
  • Head over to your console/cmd and type this command:
  • which git
  • This should show you the location.
  • Finish.

Thanks, for following all through Beginners. We’ll stop here. In the next series we will cover how to create a repository, make changes on your local file and how to have these changes on your local machine/repository reflect on your online repository :)

 

You may also like