git in 5 slides
DESCRIPTION
I try to present a concept in 5 slides … Today gitTRANSCRIPT
![Page 1: git in 5 slides](https://reader038.vdocuments.site/reader038/viewer/2022100603/5595af251a28abe83d8b4619/html5/thumbnails/1.jpg)
git in 5 slides
![Page 2: git in 5 slides](https://reader038.vdocuments.site/reader038/viewer/2022100603/5595af251a28abe83d8b4619/html5/thumbnails/2.jpg)
git is distributed revision control and source code management
HEB-ÉSI · Pierre Bettens (pbt) · 2 / 8
![Page 3: git in 5 slides](https://reader038.vdocuments.site/reader038/viewer/2022100603/5595af251a28abe83d8b4619/html5/thumbnails/3.jpg)
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](https://reader038.vdocuments.site/reader038/viewer/2022100603/5595af251a28abe83d8b4619/html5/thumbnails/4.jpg)
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](https://reader038.vdocuments.site/reader038/viewer/2022100603/5595af251a28abe83d8b4619/html5/thumbnails/5.jpg)
working together
![Page 6: git in 5 slides](https://reader038.vdocuments.site/reader038/viewer/2022100603/5595af251a28abe83d8b4619/html5/thumbnails/6.jpg)
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](https://reader038.vdocuments.site/reader038/viewer/2022100603/5595af251a28abe83d8b4619/html5/thumbnails/7.jpg)
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](https://reader038.vdocuments.site/reader038/viewer/2022100603/5595af251a28abe83d8b4619/html5/thumbnails/8.jpg)
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