simple introduction to git

13
Version Controlling with git Introduction to GIT Omid khosrojerdi omidkh [email protected] 4/22/2014 Slide 1

Upload: omid-khosrojerdi

Post on 25-Dec-2014

184 views

Category:

Engineering


0 download

DESCRIPTION

simple introduction to git, show popular commands, git friends and compare with svn in this presentation

TRANSCRIPT

Page 1: simple Introduction to git

Version Controlling with git

Introduction to GIT

Omid [email protected]

4/22/2014

Slide 1

Page 2: simple Introduction to git

• What is VCS

• What is SVN

• What is GIT

• GIT Friends

• GIT vs SVN

• GIT Commands

• Install Git

• FAQ

Subjects

Slide 2

Page 3: simple Introduction to git

• Version Control System

• All Changes made tracked

• Who made the changes

• Why they made that changes

• Have archive of project

• Reduce problem of Maintenance of project

• For managing large projects with multiple developers

• , …

What is VCS ?

Slide 3

Page 4: simple Introduction to git

• A Centralized version control system

• Traditional version control system

• Each person checkout a copy of files

• The repository doesn’t lock for use

• Automatically merge changes in repository

• If a user changes conflict with other users changes, they have to resolve them manually

• Can create some branches

What is SVN ?

Slide 4

Page 5: simple Introduction to git

What is SVN ?

Slide 5

Page 6: simple Introduction to git

• A Distributed version control system

• Git uses best and optimize checksum

• Not have center server , all folders can made to repository

• Work offline

• Can create some branches

• Fast and optimize for handling large projects

• , …

What is GIT?

Slide 6

Page 7: simple Introduction to git

What is GIT?

Slide 7

Page 8: simple Introduction to git

• SVN (cvcs)

• Mercurial (dvcs)

• Bazaar (dvcs)

• Cvs (cvcs)

• Visual source safe (cvcs)

• Bitkeeper (dvcs)

• Darcs (dvcs)

Git Friends (others vcs tools)

Slide 8

Page 9: simple Introduction to git

• GIT faster than SVN

• Check sum in GIT is more optimize than SVN

• SVN have few crashed and conflict problem

• In SVN, renaming of files causes loss of history

• In SVN, .svn in all folders

• In GIT, .git in root of project directories

• SVN more disk space required

• GIT not made for windows (but have native porting with msysgit)

• GIT Doesn’t problem of conflict

• ,…

GIT vs. SVN

Slide 9

Page 10: simple Introduction to git

GIT vs. SVN

Slide 10

Page 11: simple Introduction to git

GIT Commands (popular)

Slide 11

• Getting repository• Git init

• Git clone

• Commits• Git add

• Git commit

• Getting information• Git help

• Git status

• Git diff

• Git log

Page 12: simple Introduction to git

Install Git

Slide 12

• Linux :• Sudo apt-get install git

• Other os :• http://git-scm.com

Page 13: simple Introduction to git

FAQ

Slide 13

Need Help ?

Omid [email protected]

4/22/2014