An Ultimate Guide To GitHub

15 Mrach,2021

What will you learn in this blog?

Let's get started!

What is GitHub?

How does it work?

Creating An Account On GitHub

What do we need?

Steps:

  1. Head over to GitHub.com . Click on SignUp
  2. Enter your email-id, type in an unique username password and ofcourse prove that you're not a human.

Once you're done with the above steps, you'll see something like this-

You'll have to answer a few questions based on your interests to help you get recommendations. Then just verify your email with the link sent to you in your inbox.
Voila! Your GitHub account is ready to use!

Let's Create Our First Repository!

Wait, wait, wait! What is a repository?🤔

So, a repository contains all of your project's files and each file's revision history. You can discuss and manage your project's work within the repository. In simple words, it is a folder for your files with a tracking feature of when and who uploaded the files.

Time to create one!
In the left panel of the page, click on a Create Repository. The following page pops up-
For the starter:
  1. Choose a name for the repository,
  2. Add a small description stating what it contains,
  3. Choose the visibility (private will limit its visibility to your own account/ public for everyone to see)
  4. Initialize it with a README file,
  5. Click Create Repository.

Some More GitHub Terms You Must Know!

We saw what is a repository and created one. Let's understand some more terms


Let's Make Our First Pull Request

Again, what is a Pull Request?

It simply means asking the project owner(or the maintainer) to merge/add your code to their main code.

In technical terms, Pull requests let you tell others about changes you've pushed to a branch in a repository on GitHub. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch.

Steps for making a pull request:
  1. Fork the repository in which you want to make some changes. You can for my Demo repository for the practice.
  2. Once you fork it, make the necessary changes like add a new file, edit some code,etc.
  3. After you successfully commit the files, you will something like this:

  4. Click on pull request, you can view the changes you made. If everything is correct, click on Create Pull Request.
  5. Then, just add a brief description about the changes for the maintainer to know. Finally, click on Create Pull Request.

Congratulations!!💐 You have made your first pull request. What are you waiting for? Explore, collab and contribute.

Queries? Let's Connect And Discuss

Hurray, you have completed this lab successfully! Hope you found it easy to understand.

Got stuck with any step or got some feedback, feel free me to reach me out!

Until then, Keep Hustling👋