Version Control

2024-03-27

We have read

Version Control

Why do we need version control?

  • Keeping track of changes

    • code

    • data file

    • save as, but not exactly, we can revert too

  • Collaboration

Git and Github

  • 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

Next Time

Homework 7

  • Use github classroom to accept the assignment
  • Follow the instructions
  • Don’t forget committing and pushing the changes!