What is Git?
Git is a Distributed Version Control System (DVCS) used to:
- Track changes in source code
- Collaborate with multiple developers
- Maintain complete history of a project
- Work offline and merge changes later
Each developer has:
- A full copy of the repository
- Full history (not dependent on a central server)
Why Git is Needed
Problems without version control:
- Code overwritten by others
- No history of changes
- Hard to rollback bugs
- Manual backups
Git solves:
- Version tracking
- Collaboration
- Branching and merging
- Rollback and recovery