Understanding Git And Git Repository

Aug 6 · 2 min read

Though many of you might be using Git and its free private Git repositories, only a few can clearly differentiate between the two. So to exactly understand these two, it’s important to first understand the version control system. A version control system allows you to track changes in a file or a set of files, enabling you to compare the latest code with its previous versions followed by making changes in the current code if required. In simple terms, it is managing changes made to your system, which can be software, a text file, a website or a computer.

This brief idea about version control system will help you understand Git and repository in a better way now.

What is Git?

Git is version control software which is needed to be installed on your system for using it. Once you install it, it can be used to create a Git repository for a particular project. This software is beneficial for both individuals and teams. As a team, it usually becomes difficult to be on the same page while working on a common project. This is where Git helps you track all the modifications done by different members, provided each member of the team has Git installed on their systems.

Also known as a distributed version control system, Git lets you pull and push yours as well as others changes to different machines. This means you can work on the same copy as your team members but changes in the main directory will only be reflected if you will pull others changes or push back your own changes. Whenever you save changes while working on Git, they will be saved as different versions in the form of screenshots for future reference.

Read More: Outlining The Purpose Of Git And Its Various Benefits For The Developer Community

Types of Git Repositories

Coming over to its repositories, well, Git comprises of two repository types-local and remote. Local repository, as the name suggests is on your local machine for direct use while the Remote repository is on some other machine and is accessible indirectly. Git can be used for multiple remote repositories.

Definition of Git Repository

A folder inside the project is called a Git repository and is denoted as .git/. It is this repository which tracks all changes made to files and builds a history of each modification over time. If this folder gets deleted, your project’s history will also be deleted.

Hope this blog has provided you enough information to understand the difference between Git and its repositories.

Today, there are many platforms that give access to free private Git repositories. You just need to sign up with them to explore their different features.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade