git in 5 slides

8

Click here to load reader

Upload: pierre-bt

Post on 03-Jul-2015

205 views

Category:

Education


0 download

DESCRIPTION

I try to present a concept in 5 slides … Today git

TRANSCRIPT

Page 1: git in 5 slides

git in 5 slides

Page 2: git in 5 slides

git is distributed revision control and source code management

HEB-ÉSI · Pierre Bettens (pbt) · 2 / 8

Page 3: git in 5 slides

basic use

I want save my work … git init

git add .

git commit -m "First commit"

git add

git rm <file>

git mv <old> <new>

git log

HEB-ÉSI · Pierre Bettens (pbt) · 3 / 8

Page 4: git in 5 slides

basic use

… and undo my jobgit log

cancel modifications and jump in old state

git reset --hard <SHA1>

or just see old state

git checkout <SHA1> or git checkout :/"First words …"

or forget one specific commit

git revert <SHA1>

HEB-ÉSI · Pierre Bettens (pbt) · 4 / 8

Page 5: git in 5 slides

working together

Page 6: git in 5 slides

work with other

Someone who access my box

git clone <url>:<project>

git pull

pu l l las t s ta t e s s h o r g i t daemo n

Page 7: git in 5 slides

work with github

github is online hosting*

create project online and local and pushor

fork on github, clone, pull and push

issues, wiki, project web page, …

* other hosting gitorious or repo.or.cz

Page 8: git in 5 slides

This slides are part of 5slides serie« 5slides – how to present a concept in 5 slides »

Creditsgitmagic by Ben Lynn fr en

Who am I ?Pierre Bettens (pbt) – http://blog.namok.be

Images and iconsThe noun project; Joe Harrisson, Juan Pablo Bravo, Mert Gutav

Flickr; Richard Cuisset