What is git?
● Version control system
● Works well with text files - programs, LaTeX, beamer
● Created by Linus
Slide 3
Slide 3 text
git terminology
● Repository = Collection of files + change history
● commit = Action of changing repo state
● clone = Making a copy of a repo
● Remote repository = Repo in another location
○ push = Push changes in local repo to a remote repo
○ pull = Pull changes in a remote repo to a local repo
● Merging = Reconciling conflicting changes
Slide 4
Slide 4 text
Creating a repository
● git init
● Demo
Slide 5
Slide 5 text
Checking repository status
● git status
● Demo
Slide 6
Slide 6 text
Committing to a repository
● Two step procedure
○ git add
○ git commit
● Demo
Repository
Unstaged
changes
Staging Area
git add
git commit