Getting Started with Git: A Beginner's Guide
Introduction to Git
Git is an amazing tool to work with. Git is a popular version control system for software development. Git enables collaboration between different developers working on the same project by allowing developers to keep track of changes made to code over time. Git allows programmers to build several versions of their code, combine modifications made by various programmers, and go back in time to prior versions of their code if necessary.
Every developer has a complete copy of the code repository on their own PC because Git uses a distributed architecture. This enables developers to work without an internet connection and then merge their changes back into the main repository when they do.
A high-level overview
Let's say I am building a website, and after some time, the website is ready to be deployed, and now after some time, the website is ready to be visited, and anyone on the internet can access your website. This website has all data present in my local system; If I want to change anything, I will first change to my local version (e.g., add a better subtitle). Now maybe there is a problem with spelling in the subtitle, which I want to change, but there are new features I have added that I don't want to deploy yet. Without overwriting, if I want to change the typo, GIT can help me with that.
Git has a time machine system. We can go back in time and can work with that version on git which is known as a version control system. It has a remote repository that stores in a server, and a local repository can store in a local machine. So we can track who made what changes at which time.
Local and remote repository
Git has two repository types.
Local repository.
remote repository.
The local repository stays on our own machine, whereas the remote repository is a centralized server where anyone can access the full code. We can save the changes which we make locally on this server. The remote repository always has the backup of your data. Others can pull the repository and can work with it in their local system If any changes are made, they can always push it back to the repository.
Installation
You can go to this site and download GIT and experiment with it.
Subscribe to my newsletter
Read articles from Nilabja Sarkar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by