SlideShare a Scribd company logo
1 of 80
Download to read offline
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

More Related Content

Similar to Git vizualiation - understand what you do

Similar to 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
 
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
 
simple Git
simple Git simple Git
simple Git
 

Recently uploaded

WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2
 
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2
 
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 

Recently uploaded (20)

WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
 
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 

Git vizualiation - understand what you do