Getting started with Git and How to work with Git-hub

Janith Senanayaka
4 min readMar 6, 2021

How is git built?

Linus Torvalds

Git was created by Linus Torvalds in 2005 to develop the Linux kernel, and other kernel developers contributed to its initial development.

What is git?

Git is the most widely used modern version control system in the world today, and anyone can understand it easily Whenever you change Git-managed content, Git records it and stores the history of every change you make. Git is designed for the Linux kernel and is great for software developers. That is not the end of what it can do. You can use it for any project that is stored as files, such as web design or document storage and there is no matter how you use Git, any group can work on the same project at once without any traffic jams.

What is git repository?

In Git, a repository is a data structure used by version control system (VCS) to store metadata for a group of files and directories. It contains file additions as well as a history of changes to those files. Git’s repository is considered your project folder. All project related databases are available. Clear projects have clear repositories. One and more users can work in a single repository. in addition to that the process of copying content from an existing Git repository with the help of various Git tools is called cloning.

What is git branching?

Branching is a feature available in most modern version control systems. Separate development lines by “branching”, changing the history of the branch store. Git is very flexible about how you use branches so you can manage them, however, it is best suited for your team. Each person can have their own branch, or everyone can work on the same task specific branches.

examples for git version control systems…


benefits of using git version control systems…

01)Git performs very strongly and reliably when compared to other version control systems.

02)New code changes can be easily committed .

03)Enhances the project development speed by providing efficient collaboration.

04)version branches can be effortlessly compared and merged, and code can also be optimized to perform better.

05)Helps in code recovery in case of any disaster or contingent situation.

how to work with git-hub repository!!!

step 01

First needs to create a git-hub account. you can use this link: to create your own git-hub account.

step 02

Then go to “your repositories” and create new repository.

after clicked create repository, you can see the following page

Now you can see all the commands for pushing data into your repository, you only need these steps, then you can successfully push your data into your repository and you can use repository https link for clone the repository data.

step 03

How to works with git commands on your device

You can use a command prompt or other terminals to execute commands.

First you need to remote your repository ,after that you can type “git status ”command to see the status. after that you can see the red files in the picture on the left, which indicates that the files have not been added yet.

Then you have to type “git add — all” command for add all files after that you can see the red files in the picture on the left, which indicates that the all files have been added.

Then you have to type “git commit -m “message”” command. this commit command is used to find out what changes the user has made.

then you have to push all data to your repository using “git push origin master ”command, after that you can see it like the picture on the left.

Now you can go to your git hub account and see your repository, then the repository will appear in the picture below and you will see that all your data is stored there.

If you want to know more about git-hub commands you can use this link : .