Introduction to version control for collaborative development
Goals of this lecture




Git = version control tool
GitHub/GitLab/Bitbucket = hosting platform
Operating system agnostic
![]() |
![]() |
![]() |
sudo apt-get install git).brew install git) or Xcode Command Line Tools.git config --global user.name "Your Name"
git config --global user.email "you@example.com"
Commit changes
Record your staged changes with a descriptive message
Share changes
Check repository status

git init - Create an empty Git repository or reinitialize an existing one.
git clone - Clone a repository into a new directory.
git add - Add file contents to the index.
git commit-m "message" - Record changes to the repository with an associated message.
git push - Update remote refs along with associated objects.
git pull - Fetch from and integrate with another repository or a local branch.
git status - Show the working tree status.
git log - Show commit logs.
git branch - List, create, or delete branches.
git checkout - Switch branches or restore working tree files.
git help - Display help information about Git.
University of Helsinki Version Control System
Go to the + symbol and click on New project/repository


You have 5 minutes!

https://version.helsinki.fi/allansou/git-course.git

You have 3 minutes!


You have 5 minutes!

You have 10 minutes!
You can search among all logs in your project:

Note that all commits have an ID!

You have 3 minutes!
Official Git Documentation: git-scm.com/docs
GitHub Git Cheat Sheet: https://training.github.com/downloads/github-git-cheat-sheet.pdf
Try Git Cheat Sheet: https://trygit.js.org/cheatsheet/
Pro Git Book (Free): git-scm.com/book/en/v2
GitHub Guides: guides.github.com, https://git-scm.com/videos