Git & Version Control
Branch
What It Is
A separate version of your code where you can make changes without affecting the main version
Analogy
A parallel universe where you can experiment. If you like the results, you can merge it back into reality
Try It Out
Branches
main
5 commits
feature/new-header
2 commitscurrent
fix/login-bug
1 commits
Related Terms in Git & Version Control
Git
Track Changes in Microsoft Word, but for your entire project, and you control when to save checkpoints
GitHub
Google Drive for code — your files exist locally, but GitHub is where you back them up and share them
Repository (Repo)
A folder with a detailed diary of every change ever made to it
Commit
A save point in a video game — you can always go back to it if things go wrong