git presentation pdf

10

Click here to load reader

Upload: nabeelalimemon

Post on 27-Jun-2015

716 views

Category:

Technology


1 download

DESCRIPTION

Git and

TRANSCRIPT

Page 1: Git presentation pdf

GIT FOR EVERYONENabeel Ali Memon

1Thursday, July 28, 11

Page 2: Git presentation pdf

Conceptual Differences

If you’r not distributed, you’r not worth it

If you won’t let me work offline, you’r not worth it

If you give me hard time merging changes, you’r not worth it

If you’r dead slow, you’r not worth it

2Thursday, July 28, 11

Page 3: Git presentation pdf

Learning Git(Subversion re-education)

What is a repository?

What is a commit?

What are branches?

What is commit-history?

What about merges?

3Thursday, July 28, 11

Page 4: Git presentation pdf

A typical SVN repository

4Thursday, July 28, 11

Page 5: Git presentation pdf

A [distributed] Git repo

5Thursday, July 28, 11

Page 6: Git presentation pdf

A Commit

SVN

Commit: svn commit -m “My cool commit”

Git

Stage: git add <fileName(s)>

Commit: git commit -m “My cool commit”

Push: git push

6Thursday, July 28, 11

Page 7: Git presentation pdf

A Branch

SVN

svn copy <repo-to-branch> <branch-name>

Git

git branch <branch-name>

7Thursday, July 28, 11

Page 8: Git presentation pdf

Commit HistorySVN

One-way (revision number increments)

Unchangable

Very Slow

Git

Merges (based on hashcodes)

Changeable, Squashable, Splittable, Reshapable

Extremely Fast

8Thursday, July 28, 11

Page 9: Git presentation pdf

A Merge (conflict resolution)

SVN

Simple Stupid merge (based on your changes and my changes)

Git

Multi-Strategy, Intelligent merge (octopus, resolve, recursive, subtree, ours)

Rebase (and get rid of dumb merge-commit)

9Thursday, July 28, 11

Page 10: Git presentation pdf

Where to go

http://gitref.org/

http://progit.org/book/

http://code.google.com/p/gerrit/

10Thursday, July 28, 11