EVERYTHING YOU NEED TO KNOW ABOUT GIT | PART - 2
GIT

EVERYTHING YOU NEED TO KNOW ABOUT GIT | PART – 2

How to use Git version control. Everything you need to know before using git.

3 MINUTE READ

How to use Git version control. Everything you need to know before using git.

If you have never worked with github before, then it can be a bit confusing to start with all those terminal commands. Push Pull Merge etc. But honestly, its quiet simple once you understand what everything is.

So let’s explore Git a bit more, if you are beginner then we recommend, first complete the Part-I of this series(link here) and then continue here.


1. HOW TO FORK A REPOSITORY ?

BUT WHAT IS FORKING ?

Forking a repository means, making a working copy of someone else’s repository.

  1. Step – 1: Click on the Fork button in the repository page
  2. Step – 2: Choose the name under which you want to fork the repository

You fork will be createdSource My Linux


2. HOW TO CLONE A GIT REPOSITORY ?

BUT WHAT IS CLONING ?

Cloning is another word for downloading a repository in your local machine.

STEPS TO CLONE THE GIT REPOSITORY:

  1. Step – 1: copy the git repository link

Source My Linux

  1. Step – 2: run the command on your terminal

Source My Linux

Contratulations! Your successfully forked and cloned a repository.


3. HOW TO PULL FROM A GIT REPOSITORY ?

WHAT IS PULL ?

By pulling changes to a git repository, we load the changes on our local machine made by someone else on the repository.

  1. Open your terminal and move into the directory, which contains your git repository and type the command git pull

Source My Linux


4. HOW TO ADD A README ?

WHAT IS A README FILE ?

A readme file help other developers and reviewers to know, what the project contains.

  • Method – 1: Add a README from terminal

Source My Linux

  • Method – 2: Add README directly from Github

Source My Linux

Congratulations! You have successfully added a README file.


5. HOW TO ADD A LICENCE ?

WHAT IS A LICENCE FILE ?

A licence file lay the guidlines about the distribution of your project.

  • Step – 1: Click on Create new file

Source My Linux

  • Step – 2 : Type LICENCE on the “Name you file…” bar and click on Choose a license template

Source My Linux

  • Step – 3: Choose a license template from the left side options and click on Review and submit
  • Step – 4: Click on Commit new file

Source My Linux

Congratulations! You have successfully added a LICENCE file


REVIEWS

If You find it interesting!! we would really like to hear from you.

Ping us at Instagram/@the.blur.code

IF YOU WANT ARTICLES ON ANY TOPICS DM US ON INSTA.

Thanks for reading!! Happy Coding

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top
Hey, wait!

Before you dive into the exciting Article, wanna join our newsletter list, We promise we will not spam