What Is Git?
Git is a Distributed Version Control System (DVCS). It helps you track changes in your code, work with team members, and manage different versions of a project easily.
Why Git?
- It’s widely used and trusted by developers across the world
- Works offline and online
- Can be easily integrated with platforms like GitHub, GitLab, or Bitbucket
- Helps manage your source code and changes over time
Git Lifecycle: Step-by-Step

1.Working Directory
This is the folder on your computer where your project lives. You make changes to files
2. Staging Area (Index)
Once your changes are ready, you add them to the staging area. This tells Git which changes you want to include in your next commit.
3.Commit
You save a snapshot of the changes with a commit. Each commit has a unique ID and a message describing the changes.
4. Push to Remote
After committing, you can push your changes to a remote repository like GitHub, so others can see or collaborate on the project.