Git & GitHub
If it isn't saved, it didn't happen. If it isn't versioned, it's dangerous.
Data analysis is iterative. You will make mistakes. You will break code that used to work perfectly yesterday. Git allows you to save "checkpoints" of your work and collaborate with other analysts without overwriting their code.

Concept
Git is like the Time Machine.
Think of Git as a save point in a video game. Before you fight a boss (run a complex migration or refactor a query), you save your game. If you die, you reload.
Setup
- Install Git
- Have a GitHub account
- Configure Git credentials under local machine
- Clone repositories
Basic commands
To download commits:
git pull --rebase
To upload commits:
git add .
git commit -m "your message"
git push
Refer to https://ubunchuu.com/docs/15DFWT/basic-git
