a very basic intro to version control and git

Sitaram Chamarty (sitaramc@gmail.com)

1 preface

why

what is a VCS

why use a VCS

2 some simple operations

creating a repository

an empty directory

add some files

'git init' -- done!

how about on windows?

done!

double check...

yup -- works fine!

CLI on windows?

a bash shell

'git init' -- done!

3 basic definitions

what is a 'work tree'

what is a 'repo'

repository

(what's inside '.git'?)

4 non-linear snapshots...

'non-linear'

  • a repository keeps snapshots of the work tree...
  • ...at different points in time

snap

snapshots

snapshots of the work tree

at different

at different points

at different points in time