What is Git?
1 / 5

What is Git?

Git is a version control system for tracking changes

code
git init
Add & Commit
2 / 5

Add & Commit

Stage and save your changes

code
git add .
git commit -m 'Initial commit'
Branches
3 / 5

Branches

Work on features without affecting main code

code
git branch feature
git checkout feature
Push & Pull
4 / 5

Push & Pull

Sync with remote repositories

code
git push origin main
git pull origin main