Version Control System for Developers
Git is a version control system used to track code changes and collaborate with developers.
- Track code changes - Work in teams - Restore old versions - Manage projects safely
Download Git: https://git-scm.com Check version: git --version
git init → start repo git add . → add files git commit -m "" → save changes git status → check status
git branch feature git checkout feature git merge feature
git remote add origin URL git push -u origin main git pull origin main
1. Write code 2. git add . 3. git commit -m "update" 4. git push
.gitignore → ignore files README.md → project info