What is Git
Code version control system
Git — a distributed version control system for tracking changes in source code. Created by Linus Torvalds in 2005.
Core Concepts
- Repository — project storage with change history
- Commit — snapshot of changes with description
- Branch — independent line of development
- Merge — combining branches
- Pull Request — request to merge changes
Basic Commands
git init # Initialize repository
git clone # Clone repository
git add # Add files to staging
git commit # Create commit
git push/pull # Sync with remote
Platforms
- GitHub — largest code hosting platform
- GitLab — DevOps platform
- Bitbucket — Atlassian solution
Benefits
Git provides complete change history, team collaboration, rollback to any version, and efficient branching.