GIT Introduction

In this blog we will cover the basic definition of Git. The working areas it gives us to work and the usage of Git. We will post some basic terminologies and command in the next blog while practicing few basic commands.

Lets Begin

For the new beginner coders out there who want to collaborate with other coders and create a unique app, a project, a site or just add that one line of your coding to a major project which will change the whole code drastically, Git helps you achieve that. So what exactly is GIT

Git is a version control system.

A version control system is like a software which manages your documents or information like code. It keeps track when the document is formed, when it is modified, who modified it, who added the new line, and basically every little information that is related to your document.

?

Git is a version control system which enables you to store code, track changes, merge code and revert changes.?With Git you don’t have to be constantly connected or communicate all the time, as the project can be saved on your local server and remote server. Unless you decide to merge your code to the final project and that would create the changes. Git ensures that your part of the code is safe and also have an individual life.

?

So Why are we using Git?

?

The best usage of Git is we are not using the centralized version control system, instead we are using different branches which helps to save the main branch or project while the modification and testing is done on different branch.

?

A branch is basically a pointer to the snapshot of the changes.

?

Since Git is a free open-source version control system, the branches are cheap and are easily merged with the main branch with the new changes. Furthermore the changes are implemented swiftly which leads to faster work-flow and innovation of new tools.

?

If you are worried about losing your data, while using Git it is very rare. Somebody in your team or almost everyone has the copy of the original project and with that you can always recover the original content.

?

However if some mistake is made by the developer and they want to revert the changes they can turn back time and bring back the original content compare it with the changes made in the earlier versions, fix it. All without bothering all the other team members.

?

Moving on to the three main areas that exist in the Git, and are the life-cycle of your code.

?

Working Area: ?In this area you create your file that is stored locally in your directory and is termed as “untracked file” in the Git. In this area you can work freely, add content, delete it or modify it in your repository, whereas you do not have to worry about your work on the remote server.

?

Staging Area: Here the files are stored which are going to be the part of your next commit. This is how the Git know what changes or modifications you have made in your project.

?

You might be wondering what is commit? For now it is a snapshot of your working and staging area at. We will go down in details of what this word actually means

?

Repository: This contains all your commits. This repository stores your file securely, you can keep on making changes in your files and also can get the copy of this repository in your local system.

?

To sum up we create the files in the working area and add them to staging area, then the staging area files commits it to the repository.


#Git #git_basics #gitareas #gitcommit #blog


要查看或添加评论,请登录

Jatin Bhalla的更多文章

  • Azure Weekly Updates

    Azure Weekly Updates

    Date: 01 March 2023 Availability: Available GA: Online live resize of persistent volumes Live resizing capability…

  • Ansible basics

    Ansible basics

    In this Article, let me introduce you to the basics of ansible. What is Ansible? Ansible is simple open source IT…

  • Azure Weekly Update

    Azure Weekly Update

    Date: 16 February 2023 Availability: Available Generally available: Azure Site Recovery update rollup 66 - February…

  • Git Glossary

    Git Glossary

    Next we have some Git glossary which is bring used. 1.

  • Azure Weekly Update

    Azure Weekly Update

    Date: 15 February 2023 Availability: Available Generally available: Azure Functions support for Python 3.10 You can now…

  • Azure Weekly Update

    Azure Weekly Update

    Date: 09 February 2023 Availability: Available General availability: Azure Sphere OS version 23.02 expected on February…

  • Azure weekly updates - 3rd January 2021

    Azure weekly updates - 3rd January 2021

    Compute Public preview: Support of #Azure Container Registry across Availability Zones #AvailabilityZone support is in…

社区洞察

其他会员也浏览了