Home techsocialnetwork AI What is GitHub and Why is it Used?

What is GitHub and Why is it Used?

- Advertisement -

There was a question that I could never seem to answer when I was teaching myself how to code: “What is GitHub, and what does it do, exactly?”

Even when you go to GitHub’s website, the only information under the About section is, “GitHub is how people build software.”

Well thanks for that thorough explanation, GitHub.

The Office Eye Roll GIF - Find & Share on GIPHY

I only understood what GitHub was after it was explained thoroughly at my coding bootcamp. Even then, I didn’t truly understand its capabilities until I was forced to use it over and over again.

Advertisement

So let’s get right to it.

First of all, what is git?

This article does a good job of explaining git, but essentially git thinks of its data like a set of snapshots of a mini filesystem. GitHub is based on the git application, hence the name “Git-Hub”.

What is GitHub?

GitHub.com is a website that is used to allow developers to collaborate on projects by contributing code to the same repositories. It is widely used by companies for version control. In a nutshell, version control means that if something in the code breaks the product, the company can revert back to an earlier version– or “snapshot” as mentioned earlier– that is still working correctly. They can also use GitHub to go through an organized timeline to find out what went wrong, fix it, and get everything back up and running. With GitHub, every code contribution is stamped with the software developer’s name, the time it was committed, and what that piece of code was for. Handy, eh?

Space Omg GIF - Find & Share on GIPHY

There is a social component to GitHub, as well. Software developers can upload code from their personal projects, even, and have a public repository of their code for their friends, recruiters or hiring managers to see. In this way, GitHub is an online portfolio of your code.

On my GitHub profile, you can see a list of all my code repositories

That sounds awesome! How do I start using GitHub?

You can create your own GitHub account, and I highly recommend it. Potential employers will look at your GitHub profile if you’re applying to a software developer position with them.

  1. Go ahead and create your GitHub account. This is just like creating an account on any other website. You choose a username and a password.
  2. You will need to set up an SSH key that connects your computer securely to your GitHub account. No one else will be able to upload to your GitHub account. The SSH key is essentially is a digital “key” that you hold which only allows you to upload code to your GitHub repositories. You need to create a unique SSH key for each computer you plan on pushing code to your GitHub account with. Once you set it up, that’s it! You don’t have to think about it anymore.
  3. Use the terminal to upload code from your local machine (your computer or laptop) to your remote machine (GitHub). This part can be scary for people who have never used the terminal before.
    • Not sure what the terminal is or how to use it? This short video is super helpful and will get you up and running!
  4. Create a repository on GitHub, and upload the project folder from your computer to GitHub! This can take quite a few steps and seems tedious at first, but it will became second nature to you. Don’t give up! GitHub workflow is a vital thing to learn if you want to work in a professional programming environment, but it definitely has a learning curve to it.
    • This tutorial does a good job of walking you through the process of creating your GitHub repository and uploading your project.
Advertisement

If your head is still spinning from this GitHub stuff, GitHub themselves have some handy guides that walk you step-by-step through different functions of the site!

And if you have any other questions, feel free to comment below.

Cheers!

- Advertisement -

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SourceSam Pita

Latest articles

IoT and Transportation: How Smart Cities Can Drastically Reduce Congestion

You’re on your way to work in your driverless car. The sounds of coffee sips and turning pages of your go-to magazine...

10 Technological Advancements That Changed the Destiny of Humankind

Looking at the way we live today, it’s easy to think that relatively recent discoveries and innovations in science and technology are responsible for...
video

Marvel’s The Eternals movie: cast, story, news and more

Jack Kirby's Eternals are joining the Marvel Cinematic Universe. Here's everything we know so far… With Avengers:...

Scarlett Johansson is filming Black Widow prequel after events of Avengers: Endgame

Black Widow fans rejoice! Scarlett Johansson has been spotted back with her red hair filming for a new solo Marvel movie....
video

Ray Winstone Joins The Cast of Black widow

Ray Winstone joins Scarlett Johansson in Marvel Studios’ Natasha Romanoff standalone movie The highly-anticipated Black Widow movie is currently filming and...
Advertisement