2024-03-27
Why do we need version control?
Keeping track of changes
code
data file
save as, but not exactly, we can revert too
Collaboration
Git: keep track of changes
commit
“make change and make a comment as a reminder in the future”
Github: website host git repos
Hook up with git to back up your code in cloud
“Google drive/ One drive”
Introduce yourself to git and setup SSH authentication
Create a repository
commands
git add: tell git to track, stage
git commit: record the content has been changed
git push: update the remote repo
git pull: fetch+checkout