git

24
{ Git From noob to pro

Upload: letourneauacm

Post on 20-May-2015

870 views

Category:

Technology


0 download

DESCRIPTION

Brett Smith's Spring 2011 presentation on Git, the popular open source version control system.

TRANSCRIPT

Page 1: Git

{Git

From noob to pro

Page 2: Git

Version Control Fast Distributed

What is Git?

Page 3: Git

“Git made me a more productive coder because it showed me how much progress I had made” – Thomas “Synk” Kelley

“I use Git because the commands are really easy to use. I use Git because if I want to set up a Git server on the Internet it does not require any extra processes on my server, all I need is an SSH connection” – Chris “Panda” Nord

Why Git?

Page 4: Git

Modified – I modified a file Staged – Git has taken a snapshot of my

modification Commited – Git has permanently

recorded my modifications from the stage

The three file stages in Git

Page 5: Git

The three file stages in Git

Page 6: Git

git init git add files git commit –m ‘my commit message’

A new Git repository

Page 7: Git

..What just happened?

Page 8: Git

..What just happened?

Page 9: Git

git clone location git clone myserver.com:/path/to/repo/.git git clone

git://github.com/username/project.git git pull git push

An existing repository

Page 10: Git

git diff git revert git checkout git log git blame git tag

Useful commands

Page 11: Git

git branch new_branch git checkout new_branch

Branching

Page 12: Git

Branching

Page 13: Git

Merging

Page 14: Git

Merging

Page 15: Git

Implementation detail

Page 16: Git

Implementation detail

Page 17: Git

Implementation detail

Page 18: Git

Implementation detail

Page 19: Git

Implementation detail

Page 20: Git

Implementation detail

Page 21: Git

Implementation detail

Page 22: Git

Interactive staging Stashing Bisect

Other notables!

Page 23: Git

Questions?

Page 24: Git

Images taken from progit.org and marklodato.github.com/visual-git-guide

Credits