SlideShare une entreprise Scribd logo
1  sur  80
Télécharger pour lire hors ligne
GIT VIZUALIZATION
1
INTRODUCTION
WHY?
2
LOCAL
git commit
3
LOCAL
git commit
3
LOCAL
git checkout -b xyz
4
abc
HEAD
LOCAL
git checkout -b xyz
4
abc
HEAD
abc
HEAD
xyz
LOCAL
git checkout -b xyz
4
abc
HEAD
abc
HEAD
xyz
xyz
HEAD
LOCAL
git revert HEAD
5
LOCAL
git revert HEAD
5
LOCAL
git revert HEAD
5
ADDITIVE
multi-user SAFE
ORIGIN (server) LOCAL
ORIGIN (server)
git push ([-u] origin abc:abc)
6
ORIGIN (server) LOCAL
ORIGIN (server)
git push ([-u] origin abc:abc)
6
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
7
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
7
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
7
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
7
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
7
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
▸ git push origin abc local abc to default remote abc branch
7
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
▸ git push origin abc local abc to default remote abc branch
▸ git push heroku feat:master feat onto heroku remote master
7
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
▸ git push origin abc local abc to default remote abc branch
▸ git push heroku feat:master feat onto heroku remote master
▸ git push :feat delete default remote feat branch
7
GIT VIZUALIZATION
DIGRESSING ON GIT-PUSH
▸ git push origin abc:abc
▸ -u | --set-upstream update config of the branch
▸ git push current branch to its configured remote
▸ git push abc local abc to its default remote tracking branch
▸ git push origin abc local abc to default remote abc branch
▸ git push heroku feat:master feat onto heroku remote master
▸ git push :feat delete default remote feat branch
▸ git push : push to default remote all the branches […]
7
LOCAL
git merge abc (develop)
8
LOCAL
git merge abc (develop)
8
LOCAL
git merge abc (develop)
9
LOCAL
git merge abc (develop)
9
LOCAL
git merge abc (develop)
9
FAST FORWARD
LOCAL
git merge --no-ff abc (develop)
10
LOCAL
git merge --no-ff abc (develop)
10
ORIGIN (server) LOCAL
LOCAL
git fetch
11
develop
develop
origin/

develop
ORIGIN (server) LOCAL
LOCAL
git fetch
11
develop
develop
origin/

develop
origin/

develop
develop
ORIGIN (server) LOCAL
LOCAL
git fetch
11
develop
develop
origin/

develop
origin/

develop
develop
ORIGIN (server) LOCAL
LOCAL
git fetch
12
develop
develop
origin/

develop
origin/

develop
develop
ORIGIN (server) LOCAL
ORIGIN (server)
git push -f (origin develop)
13
ORIGIN (server) LOCAL
ORIGIN (server)
git push -f (origin develop)
13
origin/

develop
origin/
abc
ORIGIN (server) LOCAL
ORIGIN (server)
git push -f (origin develop)
13
OVERWRITE
origin/

develop
origin/
abc
ORIGIN (server) LOCAL
LOCAL
git pull (fetch + merge)
14
ORIGIN (server) LOCAL
LOCAL
git pull (fetch + merge)
14
origin/

develop
develop
ORIGIN (server) LOCAL
LOCAL
git pull (fetch + merge)
14
origin/

develop
develop
ORIGIN (server) LOCAL
LOCAL
git pull
15
develop
origin/

develop
ORIGIN (server) LOCAL
LOCAL
git pull
15
develop
origin/

develop
ORIGIN (server) LOCAL
LOCAL
git pull
15
develop
origin/

develop
ORIGIN (server) LOCAL
LOCAL
git pull
15
develop
origin/

develop
ORIGIN (server) LOCAL
LOCAL
git pull --rebase
16
ORIGIN (server) LOCAL
LOCAL
git pull --rebase
16
ORIGIN (server) LOCAL
LOCAL
git pull --rebase
16
FETCH +

REBASE
ORIGIN (server) LOCAL
LOCAL
git pull --rebase
17
ORIGIN (server) LOCAL
LOCAL
git pull --rebase
17
ORIGIN (server) LOCAL
LOCAL
git pull --rebase
17
FLATTENED
ORIGIN (server) LOCAL
LOCAL
git pull --rebase
17
FLATTENED
CONFLICTS

AGAIN
ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/

develop
def
ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/

develop
def
develop
origin/

develop
def
ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/

develop
def
develop
origin/

develop
def
not easily

accessible
ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/

develop
def
develop
origin/

develop
def
not easily

accessible
SHA1

develop@{1}
ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/

develop
def
develop
origin/

develop
def
not easily

accessible
SHA1

develop@{1}
will be garbage

collected
ORIGIN (server) LOCAL
LOCAL
git reset --hard origin/develop
18
develop
origin/

develop
def
develop
origin/

develop
def
LOCAL

CHANGES

LOST
not easily

accessible
SHA1

develop@{1}
will be garbage

collected
ORIGIN (server) LOCAL
LOCAL
git branch -f develop origin/develop
19
develop
origin/

develop
def
develop
origin/

develop
def
LOCAL

CHANGES

LOST
not easily

accessible
SHA1

develop@{1}
will be garbage

collected
ORIGIN (server) LOCAL
LOCAL
git rebase origin/develop
20
develop
ORIGIN (server) LOCAL
LOCAL
git rebase origin/develop
20
develop
develop
ORIGIN (server) LOCAL
LOCAL
git rebase origin/develop
20
origin/

develop
develop
develop
ORIGIN (server) LOCAL
LOCAL
git rebase origin/develop
21
develop
origin/

develop
def
ORIGIN (server) LOCAL
LOCAL
git rebase origin/develop
21
develop
origin/

develop
develop
origin/

develop
def
def
LOCAL
git rebase -i develop
22
LOCAL
git rebase -i develop
22
LOCAL
git rebase -i develop
22
LOCAL
git rebase -i develop
22
LOCAL
git rebase -i develop
22
LOCAL
git rebase -i develop
22
LOCAL
git rebase -i develop
22
LOCAL
git rebase -i develop
22
LOCAL
git rebase -i develop
22
23REBASE WITH AN ANCHOR
23REBASE WITH AN ANCHOR
23REBASE WITH AN ANCHOR
23REBASE WITH AN ANCHOR
git rebase --onto …
23REBASE WITH AN ANCHOR
git rebase --onto …
23REBASE WITH AN ANCHOR
git rebase --onto …
24
24
ROTI
26
Grégory Bataille
@gregbfiveten
Pix4D
Back end engineer
Photogrammetry

Contenu connexe

Similaire à Git vizualiation - understand what you do

Similaire à Git vizualiation - understand what you do (20)

Loading...git
Loading...gitLoading...git
Loading...git
 
Hello git
Hello git Hello git
Hello git
 
Git Basics - RubyFest 2009
Git Basics - RubyFest 2009Git Basics - RubyFest 2009
Git Basics - RubyFest 2009
 
Git Tech Talk
Git  Tech TalkGit  Tech Talk
Git Tech Talk
 
Essential git fu for tech writers
Essential git fu for tech writersEssential git fu for tech writers
Essential git fu for tech writers
 
Git Basics at Rails Underground
Git Basics at Rails UndergroundGit Basics at Rails Underground
Git Basics at Rails Underground
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
 
Becoming a Git Master
Becoming a Git MasterBecoming a Git Master
Becoming a Git Master
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
Instrumentación de entrega continua con Gitlab
Instrumentación de entrega continua con GitlabInstrumentación de entrega continua con Gitlab
Instrumentación de entrega continua con Gitlab
 
Git
GitGit
Git
 
Understanding git
Understanding gitUnderstanding git
Understanding git
 
Git
GitGit
Git
 
git flow
git flowgit flow
git flow
 
Don't fear the rebase
Don't fear the rebaseDon't fear the rebase
Don't fear the rebase
 
Becoming a Git Master - Nicola Paolucci
Becoming a Git Master - Nicola PaolucciBecoming a Git Master - Nicola Paolucci
Becoming a Git Master - Nicola Paolucci
 
How to Really Get Git
How to Really Get GitHow to Really Get Git
How to Really Get Git
 
Presentacion git
Presentacion gitPresentacion git
Presentacion git
 
Git basics
Git basicsGit basics
Git basics
 
Git beyond basics
Git   beyond basicsGit   beyond basics
Git beyond basics
 

Dernier

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 

Dernier (20)

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 

Git vizualiation - understand what you do