GIT Tutorial 
Ozyegin University, Computer Science 
CS 320 - Software Engineering 
muratkrty@gmail.com 
October 14, 2014 
(CS 320- Software Engineering) GIT Tutorial October 14, 2014 1 / 11
History and Basics 
GIT is 
1 fast (thanks to C) 
2 distributed (unlike SVN) 
3 secure (check SHA) 
4 intuitive and easy to learn 
5 FOSS (GPLv2) 
6 used by pros (DHH, Torvalds) 
7 used for reputable projects (Rails, 
Django, Linux kernel) 
(CS 320- Software Engineering) GIT Tutorial October 14, 2014 2 / 11
Use the GIT, young Padawan! 
A7! GIT 
B7! SVN 
1 
1google,trends 
(CS 320- Software Engineering) GIT Tutorial October 14, 2014 3 / 11
Work Flow I 
2 
2http://git-scm.com/book/en/Getting-Started-Git-Basics 
(CS 320- Software Engineering) GIT Tutorial October 14, 2014 4 / 11
Work Flow II 
3 
3http://blogpro.toutantic.net/2012/01/02/another-git-branching-model/ 
(CS 320- Software Engineering) GIT Tutorial October 14, 2014 5 / 11
Setup/Con
guration 
Who the heck are you? 
$ git con
g {global user.name=luke 
$ git con
g {global user.email=luke@skywalker.com 
$ git con
g {global core.editor emacs 
$ git con
g {global color.iu true 
(CS 320- Software Engineering) GIT Tutorial October 14, 2014 6 / 11

Git tutorial for CS320 Students

  • 1.
    GIT Tutorial OzyeginUniversity, Computer Science CS 320 - Software Engineering muratkrty@gmail.com October 14, 2014 (CS 320- Software Engineering) GIT Tutorial October 14, 2014 1 / 11
  • 2.
    History and Basics GIT is 1 fast (thanks to C) 2 distributed (unlike SVN) 3 secure (check SHA) 4 intuitive and easy to learn 5 FOSS (GPLv2) 6 used by pros (DHH, Torvalds) 7 used for reputable projects (Rails, Django, Linux kernel) (CS 320- Software Engineering) GIT Tutorial October 14, 2014 2 / 11
  • 3.
    Use the GIT,young Padawan! A7! GIT B7! SVN 1 1google,trends (CS 320- Software Engineering) GIT Tutorial October 14, 2014 3 / 11
  • 4.
    Work Flow I 2 2http://git-scm.com/book/en/Getting-Started-Git-Basics (CS 320- Software Engineering) GIT Tutorial October 14, 2014 4 / 11
  • 5.
    Work Flow II 3 3http://blogpro.toutantic.net/2012/01/02/another-git-branching-model/ (CS 320- Software Engineering) GIT Tutorial October 14, 2014 5 / 11
  • 6.
  • 7.
    guration Who theheck are you? $ git con
  • 8.
  • 9.
  • 10.
    g {global core.editoremacs $ git con
  • 11.
    g {global color.iutrue (CS 320- Software Engineering) GIT Tutorial October 14, 2014 6 / 11