Introduction
In this blog, we will see what is meant by version control and why version control is used in web development.
- 1. Version control is a system that helps track and manage changes to a project’s codebase over time.
- 2. It allows multiple developers to work on the same project simultaneously without conflicts.
- 3. It maintains a history of all changes and enables easy rollback to previous versions if needed.
Uses
Collaboration
Track History
Experimentation
Automatic backup
Accountability
Git is a distributed version control that helps developers change their source code.
It allows you to work efficiently in teams by maintaining project history.
Git is a cloud-based platform that hosts Git repositories.
It provides tools for managing, sharing, and reviewing code in a collaborative environment.
Feautures of Git
- Distributed Version Control
- Efficient Branching and Merging
- Speed and Performance
- Open Source and Reliable
Example: if you are writing a research paper, how can you manage the work?
Version 1: Write the introduction and save it as “paper_v1.doc.”
Version 2: You add new sections and fix some typos, then save “paper_v2.doc”.
Version 3:Your team revises the conclusion, then saves “paper_v3_.doc”.
This is same as in Git,
Each time you commit a change, Git takes a snap of the current state of your files.
These snapshots are stored in versions. you can go back to any one of them.
Multiple people can work on the same project and merge it finally.
Today we are covered about what is mean by version control , why it is used for , what is the purpose of the version control will grind it depply in the upcoming topics, See you on the next blog
Thank you.