P0.4: Git & GitHub Mastery
Every professional developer tracks their code updates using Git and hosts it online using GitHub.
Every professional developer tracks their code updates using Git and hosts it online using GitHub.
Lesson: p0-4-git
Every professional developer tracks their code updates using Git and hosts it online using GitHub.
Git is a tool that runs locally on your computer to keep historical snapshots of your project. If you break your app, you can restore it to an older working state instantly. GitHub is a cloud platform where you host those snapshots so you can collaborate with teams.
When coding, you will use this cycle repeatedly:
git init (Creates a local git store)git status (Shows changed files)git add . (Stages all modified files for snapshot)git commit -m "feat: add landing header" (Creates a savepoint with description)git push origin main (Pushes local code to GitHub)