You stepped in the coding world, you probably heard the word ‘git’. You may ask, what is git? Well, Wikipedia is always here for you.

Git is a distributed version-control system for tracking changes in source code during software development.
(Wikipedia)

That means, for example, you have a file of code. You modified something in that but you still want to keep the old version, so you save the modified file under another name, say, demo_1. Then you want to modify something and keep the 2 old ones, you save the new file under the name demo_2. After that, demo_3, demo_4, or even demo_1_2_3 and so on will be born. If you’re careful, you might create a text file to keep track of your files, to note the things you’ve modified between the files.

This process looks fine if there are about 1-2 versions with some minor changes. But if you have more than that, the work will pile up and you will end up getting stuck in a ton of files. And what if your files have other contributors than you?

That’s why git is here to make your life less painful.

Install Git

Checking git

Maybe your computer has already got git installed. Let’s check out using command line. If you’re using Mac, open Terminal, which has a logo that looks like a >_ icon. For Windows, use Command Prompt. Then type

git --version

If the terminal returns with a git version, then you’re ready to use git. Otherwise you’ve still not got yet and need to install.

Install

If git is not available on your computer or you want to get the latest version, you can go here and follow the instructions to install git. These instructions use command line, which are hard to follow at first. Although there is a more visual way to do it, I think we should get comfortable with these commands (we’ll encounter them a lot).

Create a GitHub Account

Oh wait, so GitHub is not Git?

No. Don’t be confused.

Git and GitHub are not the same, although they all have ‘git’ in their names. Git is a local tool. You install and use it locally right there on your computer. While GitHub is a cloud-based platform, has more features than git but still based on git.

In short, Git is Version Control System and GitHub is a hosting service for Git Repositories.
(Codeburst )

You don’t need to totally understand the differences between Git and GitHub. If you use them enough, you eventually know. Right now, you just need to know that you install git as a base, and you use GitHub to take advantage of git’s features. That’s enough.

Creating a GitHub account is like a piece of cake. You go there and click Sign up and do as required. Like creating your own Facebook. Done?

Now let me explain briefly about GibHub’s repository.

Repository is like a main folder in which you store everything of your project. It is recommended that you create a repository with a README file to describe what your repository or project is about.

Conclusion

Welcome you to Git and GitHub. There’s a whole new world for you to discover. Next, you’ll learn how to create a repository and what you can do with it. Stay tuned!

For reference

An Intro to Git and GitHub for Beginners (Tutorial)
Step-by-step tutorial for beginners to get started with git and GitHub.